Mercurial > mplayer.hg
changeset 33144:a2a32138597b
More precise decoder lag calculation for frame-multithreading.
author | reimar |
---|---|
date | Thu, 07 Apr 2011 21:48:16 +0000 |
parents | 1cad23803d94 |
children | 1e637ada9003 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Thu Apr 07 21:08:49 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Apr 07 21:48:16 2011 +0000 @@ -173,6 +173,8 @@ 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;