Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 34291:e61a652e9cf1
Finally apply forgotten patch to fix VDCTRL_QUERY_UNSEEN_FRAMES result for vd_ffmpeg.
author | reimar |
---|---|
date | Sat, 03 Dec 2011 18:43:54 +0000 |
parents | a52c5ff01dcd |
children | a15ac2fd7f01 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat Dec 03 08:03:12 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Dec 03 18:43:54 2011 +0000 @@ -180,8 +180,10 @@ avcodec_flush_buffers(avctx); return CONTROL_TRUE; case VDCTRL_QUERY_UNSEEN_FRAMES: - // has_b_frames includes delay due to frame-multithreading - return avctx->has_b_frames + 10; + // "has_b_frames" contains the (e.g. reorder) delay as sepcified + // in the standard. "delay" contains the libavcodec-specific delay + // e.g. due to frame multithreading + return avctx->has_b_frames + avctx->delay + 10; } return CONTROL_UNKNOWN; }