diff libmpcodecs/vd_ffmpeg.c @ 33152:0c2838570652

Revert r33231, FFmpeg already sets has_b_frames up this way for frame-multithreading.
author reimar
date Sat, 09 Apr 2011 14:11:36 +0000
parents a2a32138597b
children 0ee0e309677b
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sat Apr 09 04:12:03 2011 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sat Apr 09 14:11:36 2011 +0000
@@ -173,8 +173,7 @@
         avcodec_flush_buffers(avctx);
         return CONTROL_TRUE;
     case VDCTRL_QUERY_UNSEEN_FRAMES:
-        if (avctx->active_thread_type & FF_THREAD_FRAME)
-          return avctx->has_b_frames + avctx->thread_count + 10;
+        // has_b_frames includes delay due to frame-multithreading
         return avctx->has_b_frames + 10;
     }
     return CONTROL_UNKNOWN;