[MPlayer-cvslog] r33231 - trunk/libmpcodecs/vd_ffmpeg.c
reimar
subversion at mplayerhq.hu
Thu Apr 7 23:48:16 CEST 2011
Author: reimar
Date: Thu Apr 7 23:48:16 2011
New Revision: 33231
Log:
More precise decoder lag calculation for frame-multithreading.
Modified:
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Thu Apr 7 23:08:49 2011 (r33230)
+++ trunk/libmpcodecs/vd_ffmpeg.c Thu Apr 7 23:48:16 2011 (r33231)
@@ -173,6 +173,8 @@ static int control(sh_video_t *sh, int c
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;
return avctx->has_b_frames + 10;
}
return CONTROL_UNKNOWN;
More information about the MPlayer-cvslog
mailing list