[FFmpeg-cvslog] lavc/ffv1dec: move copy_fields() under HAVE_THREADS
Anton Khirnov
git at videolan.org
Thu Aug 1 11:16:40 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 3 14:54:51 2024 +0200| [d845ea49c5b6039df18f935103cbef588f223799] | committer: Anton Khirnov
lavc/ffv1dec: move copy_fields() under HAVE_THREADS
It is unused otherwise
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d845ea49c5b6039df18f935103cbef588f223799
---
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;
More information about the ffmpeg-cvslog
mailing list