Mercurial > mplayer.hg
changeset 6371:622d57683187
Fix asf stream wich were giving invalid frame times because the frame time
was 0.
author | albeu |
---|---|
date | Mon, 10 Jun 2002 09:59:44 +0000 |
parents | 1ae3a153f380 |
children | 075cca2558f9 |
files | libmpdemux/video.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/video.c Mon Jun 10 08:14:33 2002 +0000 +++ b/libmpdemux/video.c Mon Jun 10 09:59:44 2002 +0000 @@ -293,7 +293,7 @@ case DEMUXER_TYPE_ASF: { float next_pts = ds_get_next_pts(d_video); float d= next_pts > 0 ? next_pts - d_video->pts : d_video->pts-pts1; - if(d>0){ + if(d>=0){ if(verbose) if((int)sh_video->fps==1000) mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\navg. framerate: %d fps \n",(int)(1.0f/d)); @@ -301,7 +301,7 @@ sh_video->fps=1.0f/d; frame_time = d; } else { - mp_msg(MSGT_CPLAYER,MSGL_WARN,"\nInvalid frame duration value. Defaulting to 1/25 sec.\n"); + mp_msg(MSGT_CPLAYER,MSGL_WARN,"\nInvalid frame duration value (%2.5f/%2.5f => %2.5f). Defaulting to 1/25 sec.\n",d_video->pts,next_pts,d); frame_time = 1/25.0; } }