aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-07-03 14:54:51 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-01 10:09:25 +0200
commitd845ea49c5b6039df18f935103cbef588f223799 (patch)
treeba5116c997e4094ab768c12f86d4ec88cb7ba311
parent3a5c814b19191022affa76e282b69b9aca8883ba (diff)
downloadffmpeg-d845ea49c5b6039df18f935103cbef588f223799.tar.gz
lavc/ffv1dec: move copy_fields() under HAVE_THREADS
It is unused otherwise
-rw-r--r--libavcodec/ffv1dec.c2
1 files changed, 1 insertions, 1 deletions
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;