Commit d52a1be4 authored by Peter Ross's avatar Peter Ross

avcodec/vp3: ref_frame/ref_frames are only required when HAVE_THREADS=1

parent f477ee3e
...@@ -1961,6 +1961,7 @@ fail: ...@@ -1961,6 +1961,7 @@ fail:
return ret; return ret;
} }
#if HAVE_THREADS
static int ref_frame(Vp3DecodeContext *s, ThreadFrame *dst, ThreadFrame *src) static int ref_frame(Vp3DecodeContext *s, ThreadFrame *dst, ThreadFrame *src)
{ {
ff_thread_release_buffer(s->avctx, dst); ff_thread_release_buffer(s->avctx, dst);
...@@ -1979,7 +1980,6 @@ static int ref_frames(Vp3DecodeContext *dst, Vp3DecodeContext *src) ...@@ -1979,7 +1980,6 @@ static int ref_frames(Vp3DecodeContext *dst, Vp3DecodeContext *src)
return 0; return 0;
} }
#if HAVE_THREADS
static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
{ {
Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data; Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment