diff mbox series

[FFmpeg-devel,06/39] lavc/ffv1dec: move copy_fields() under HAVE_THREADS

Message ID 20240716171155.31838-6-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/39] tests/fate/vcodec: add vsynth tests for FFV1 version 2 | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 16, 2024, 5:11 p.m. UTC
It is unused otherwise
---
 libavcodec/ffv1dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer July 24, 2024, 6:58 p.m. UTC | #1
On Tue, Jul 16, 2024 at 07:11:21PM +0200, Anton Khirnov wrote:
> It is unused otherwise
> ---
>  libavcodec/ffv1dec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

ok

thx

[...]
diff mbox series

Patch

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;