From patchwork Mon Jul 22 09:43:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 50678 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp1905644vqm; Mon, 22 Jul 2024 02:51:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU0STwowpq5RLQc+ywUJhrLVq16MARUB3Idr4eS5M0yl4dmDgtWpM8LYuQHbvaU/+ReKabGqu+sp4WRSbA1PmXP59MQctXMpR64ZA== X-Google-Smtp-Source: AGHT+IEbUsFRDQKUNsMD6SOFWHWjdk0n5AsGMmp3shsnhdjbUNA/dppqCSNNgqoyP/ybTAxjBGe6 X-Received: by 2002:a17:907:d17:b0:a72:b43c:72f2 with SMTP id a640c23a62f3a-a7a41a965b8mr794146366b.2.1721641910419; Mon, 22 Jul 2024 02:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721641910; cv=none; d=google.com; s=arc-20160816; b=bfWDt97sZNYeljMRd0zPlbYNeKAmNp/slbkUFfZ2FaiUtk2kAv6PEXJkgbrdZIKaB7 lV6NKKmBFZxOW7tKtbECJh7QDa1W6Zzti66wrHiG7a9EJ3HcHEWIVCFTE5yQTV03lm7I zuYPR89ZcLfbg1MQZgg3WQJKV5ROE/WKN3eBf7GJHeG82qowFL8iSkGoplT/JsDUELTa 8HsVi/rfqE2SXtuH/7Rgj66eGo1DtzugLlplbJaPTd1YuII1qlzpgxCnKLUnjBtVjc3O O5WtwL8Zjis5so5OwS5Emo1YMI7yX10dLzJQ31izDXbq0UWQ3cbPlDpNvMjPGKoNpEPU VDag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=yevyi0W5/v6G/j7qkhgDHh9wSdKLUgbVpsR3IW5dqv0=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=cWPq5bAyQNsDugkzsYjsO7yFW8SxHC0PWbUMU1mAXNwSpV31uOfloM+N1XIRUnB/dH aVDD5h7OZ4Wlph3qoYsHU94F3ELTv2Z8lln5HqfMpo6pk7EIDnfrLsc8QJV8DdDNbIaB nf4TU9/6GbwFjl1+K6G/VMJ5amkvqy4VbyECqgq8cp7aDkNmRxzYrKSYfgYrft4BQ0DL eJbHGq0HV/49fZ8cdcVA+L9D3WAfXsGuBYOeIcuNCOb58P+pV+X2AUA68Gc0GcDQBgvA BclFUr4W9ELV8jvHRExanaDP6dRtsZ2fsRbUHKuUgHDA88K8KCzO2h0oSL5Ob8E+AqgP mGoA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=RJZmAhe1; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a7a3c928447si359639966b.655.2024.07.22.02.51.50; Mon, 22 Jul 2024 02:51:50 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=RJZmAhe1; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1EDCA68D6C1; Mon, 22 Jul 2024 12:43:49 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: c3ziryaLpUtF 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,