[FFmpeg-cvslog] avcodec/vp3: ref_frame/ref_frames are only required when HAVE_THREADS=1

Peter Ross git at videolan.org
Sun Jan 13 22:08:56 EET 2019


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Fri Jan  4 13:06:07 2019 +1100| [d52a1be4e339f977485941ebf3bd26da2a40f72f] | committer: Peter Ross

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d52a1be4e339f977485941ebf3bd26da2a40f72f
---

 libavcodec/vp3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list