]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_direct.c
tiertexseq: set audio stream start time to 0
[ffmpeg] / libavcodec / h264_direct.c
index 4e05937ab45eb77e7bb2b37c3302791eb1000dad..9010cacfd9aa186541dc0bada1b38826ceaaf076 100644 (file)
@@ -147,13 +147,14 @@ static void await_reference_mb_row(H264Context * const h, Picture *ref, int mb_y
     int ref_field_picture = ref->field_picture;
     int ref_height = 16*h->s.mb_height >> ref_field_picture;
 
-    if(!HAVE_PTHREADS || !(h->s.avctx->active_thread_type&FF_THREAD_FRAME))
+    if(!HAVE_THREADS || !(h->s.avctx->active_thread_type&FF_THREAD_FRAME))
         return;
 
     //FIXME it can be safe to access mb stuff
     //even if pixels aren't deblocked yet
 
-    ff_thread_await_progress((AVFrame*)ref, FFMIN(16*mb_y >> ref_field_picture, ref_height-1),
+    ff_thread_await_progress(&ref->f,
+                             FFMIN(16 * mb_y >> ref_field_picture, ref_height - 1),
                              ref_field_picture && ref_field);
 }