From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id E4C2D4BD2D
	for <ffmpegdev@gitmailbox.com>; Tue, 16 Jul 2024 17:16:50 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CDD1568DAC0;
	Tue, 16 Jul 2024 20:16:38 +0300 (EEST)
Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E12EB68D918
 for <ffmpeg-devel@ffmpeg.org>; Tue, 16 Jul 2024 20:16:30 +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=dn8Vb1h2; dkim-atps=neutral
Received: from localhost (mail1.khirnov.net [IPv6:::1])
 by mail1.khirnov.net (Postfix) with ESMTP id E90964DA7
 for <ffmpeg-devel@ffmpeg.org>; Tue, 16 Jul 2024 19:16:29 +0200 (CEST)
Received: from mail1.khirnov.net ([IPv6:::1])
 by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP
 id phIjIy2iZiFF for <ffmpeg-devel@ffmpeg.org>;
 Tue, 16 Jul 2024 19:16:29 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail;
 t=1721150187; bh=TfY2T6WVUUhNfF/9WDur98EkaFL80LlfXrVIbRNOk2k=;
 h=From:To:Subject:Date:In-Reply-To:References:From;
 b=dn8Vb1h2nqiPPZspoNIohRUhvC1fWrFgskSFfTyhQIYA10tAuGUU31W4SJDcqcXxg
 4Mg8LYd6WzfgVEjHi1ghTgIjDIKSvCaW3Tf4BMWVz7rf/RP6C7T7DfuhxzNYhcDZN3
 jaehB+fbgoDf5k+cynlDNAP84R/MHSCgrdNR+/ClKCw1LRAu47r5duVnj4dT/DIICk
 kZ1rH1AQ06AD0ll7l2zqWqmiH259G45OCI2rK0PP5BJD6VKKtGmdjLcvvOREHb0jH5
 8jKzNRoF767RVdjDCfqHWgq+aUdmKBvsGKsrdEqwZiRgbBYPDJcb4bnZnU3rVFy29+
 JjjdCPbYc1+Rw==
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 169BA4DBC
 for <ffmpeg-devel@ffmpeg.org>; Tue, 16 Jul 2024 19:16:27 +0200 (CEST)
Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1])
 by libav.khirnov.net (Postfix) with ESMTP id 6BDFC3A155A
 for <ffmpeg-devel@ffmpeg.org>; Tue, 16 Jul 2024 19:16:20 +0200 (CEST)
From: Anton Khirnov <anton@khirnov.net>
To: ffmpeg-devel@ffmpeg.org
Date: Tue, 16 Jul 2024 19:11:21 +0200
Message-ID: <20240716171155.31838-6-anton@khirnov.net>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240716171155.31838-1-anton@khirnov.net>
References: <20240716171155.31838-1-anton@khirnov.net>
MIME-Version: 1.0
Subject: [FFmpeg-devel] [PATCH 06/39] lavc/ffv1dec: move copy_fields() under
 HAVE_THREADS
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20240716171155.31838-6-anton@khirnov.net/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

It is unused otherwise
---
 libavcodec/ffv1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index dbb7e082a3..6d59355c23 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -1027,6 +1027,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe,
     return buf_size;
 }
 
+#if HAVE_THREADS
 static void copy_fields(FFV1Context *fsdst, const FFV1Context *fssrc,
                         const FFV1Context *fsrc)
 {
@@ -1055,7 +1056,6 @@ static void copy_fields(FFV1Context *fsdst, const FFV1Context *fssrc,
     }
 }
 
-#if HAVE_THREADS
 static int update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
 {
     FFV1Context *fsrc = src->priv_data;
-- 
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".