summaryrefslogtreecommitdiff
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2019-01-04 13:06:07 +1100
committerPeter Ross <pross@xvid.org>2019-01-14 07:07:54 +1100
commitd52a1be4e339f977485941ebf3bd26da2a40f72f (patch)
tree2ef78b3e44b610daef3415c8faa7f83ced81de89 /libavcodec/vp3.c
parentf477ee3e8956cd5a83282033e93c7673f40bd598 (diff)
avcodec/vp3: ref_frame/ref_frames are only required when HAVE_THREADS=1
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 9df2fda49d..a5d8c2ed0b 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1961,6 +1961,7 @@ fail:
return ret;
}
+#if HAVE_THREADS
static int ref_frame(Vp3DecodeContext *s, ThreadFrame *dst, ThreadFrame *src)
{
ff_thread_release_buffer(s->avctx, dst);
@@ -1979,7 +1980,6 @@ static int ref_frames(Vp3DecodeContext *dst, Vp3DecodeContext *src)
return 0;
}
-#if HAVE_THREADS
static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
{
Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data;