From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D27D94C0F2 for ; Mon, 22 Jul 2024 09:43:52 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DC25A68D6BD; Mon, 22 Jul 2024 12:43:48 +0300 (EEST) Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0225968D67F for ; Mon, 22 Jul 2024 12:43:42 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=RJZmAhe1; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 4C5504DE4 for ; Mon, 22 Jul 2024 11:43:39 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id byH8_P8qIpEJ for ; Mon, 22 Jul 2024 11:43:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1721641418; bh=gxPnGzBOjPuDzm5kfjby9GF9gd6KoiBkI1BdpBut2gY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RJZmAhe1J1WOxY2L9TYoDnkIXJWHcgH7F//GUErwtG9ha/UpSVFrIHn2RjW0VU2Ni eHwS4vefAlvYUGqBABl4yAo4QYnsXiHFmJuhEQZXxVvxrdA6hs/me5ePXBPSyQ8H3Y uvGbn9uDsmh2nb2Khq6pAEA8OK2m1xTlpSSW0ypjay9TcEHT6P1by6U09C4moI8E7K 2jdQuMs2oDZaxtUH7MU5DCrTTGoQxRzcLwlAUis/yqLfgdhFY0PXRRIaYienn6gDLU dYVkCP2l7oujIr81uLjpfY2eZ7N6mnnJ+gdaIPV53lyw1KHfd28PMsxnfvF5lOGEV8 zXloRCt7Tfrbw== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 750D74DDB for ; Mon, 22 Jul 2024 11:43:37 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 306413A02CA for ; Mon, 22 Jul 2024 11:43:31 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 22 Jul 2024 11:43:20 +0200 Message-ID: <20240722094322.28916-1-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240717205156.GT4991@pb2> References: <20240717205156.GT4991@pb2> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] lavc/ffv1dec: drop code handling AV_PIX_FMT_FLAG_PAL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: No paletted pixel formats are supported by the decoder. --- libavcodec/ffv1dec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 7dc4a537a9..aa2c35880e 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -981,10 +981,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, (sc->slice_y >> sv) + ((sc->slice_x >> sh) << pixshift); } - if (desc->flags & AV_PIX_FMT_FLAG_PAL) { - dst[1] = p->data[1]; - src[1] = f->last_picture.f->data[1]; - } + av_image_copy(dst, p->linesize, src, f->last_picture.f->linesize, avctx->pix_fmt, -- 2.43.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".