]> git.sesse.net Git - ffmpeg/commitdiff
lavc: update the fallback versions of ff_thread_*
authorAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 07:43:32 +0000 (08:43 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 09:22:10 +0000 (10:22 +0100)
Fixes build without threads after
759001c534287a96dc96d1e274665feb7059145d.

libavcodec/utils.c

index 62fc1b56b1467e3b1825784c457c784bfcba113f..25914282dc69926747e044cf1ca8ea1a40b0e2a2 100644 (file)
@@ -2315,26 +2315,26 @@ int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
 
 #if !HAVE_THREADS
 
-int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f, int flags)
+int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
 {
     f->owner = avctx;
-    return ff_get_buffer(avctx, f, flags);
+    return ff_get_buffer(avctx, f->f, flags);
 }
 
-void ff_thread_release_buffer(AVCodecContext *avctx, AVFrame *f)
+void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f)
 {
-    av_frame_unref(f);
+    av_frame_unref(f->f);
 }
 
 void ff_thread_finish_setup(AVCodecContext *avctx)
 {
 }
 
-void ff_thread_report_progress(AVFrame *f, int progress, int field)
+void ff_thread_report_progress(ThreadFrame *f, int progress, int field)
 {
 }
 
-void ff_thread_await_progress(AVFrame *f, int progress, int field)
+void ff_thread_await_progress(ThreadFrame *f, int progress, int field)
 {
 }