Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 18917:d9a75b26da6c
Add a new video pts tracking mode, enabled by option -correct-pts.
This mode has the following differences:
- Video timing is correct for streams with B frames, at least with some
demuxers.
- Video filters can modify frame timestamps and insert new frames, and
removing frames is handled better than before.
- Some things are known to break, it's not usable as the default yet.
Things should work as before when the -correct-pts option is not used.
author | uau |
---|---|
date | Thu, 06 Jul 2006 06:58:17 +0000 |
parents | cc65a585fdcc |
children | 8b52dad54b1d |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Thu Jul 06 05:05:00 2006 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Jul 06 06:58:17 2006 +0000 @@ -188,7 +188,9 @@ break; case VDCTRL_RESYNC_STREAM: avcodec_flush_buffers(avctx); - return CONTROL_TRUE; + return CONTROL_TRUE; + case VDCTRL_QUERY_UNSEEN_FRAMES: + return avctx->has_b_frames + 10; } return CONTROL_UNKNOWN; }