Mercurial > mplayer.hg
changeset 33029:6b6320dcefdf
For a stream without pts values time video frames based on fps
value.
author | reimar |
---|---|
date | Sat, 26 Mar 2011 16:01:00 +0000 |
parents | 038ff73f9894 |
children | f3037de78b36 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Mar 26 13:00:11 2011 +0000 +++ b/mplayer.c Sat Mar 26 16:01:00 2011 +0000 @@ -2460,6 +2460,8 @@ mp_msg(MSGT_CPLAYER, MSGL_V, "pts value < previous\n"); } frame_time = sh_video->pts - sh_video->last_pts; + if (sh_video->last_pts == MP_NOPTS_VALUE) + frame_time = sh_video->frametime; sh_video->last_pts = sh_video->pts; sh_video->timer += frame_time; if(mpctx->sh_audio)