Workaround for live Real streams starting with nonzero pts

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19661 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtogni 2006-09-03 18:30:59 +00:00
parent 1d6919b492
commit b19a9bf88d
1 changed files with 1 additions and 1 deletions

View File

@ -610,7 +610,7 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
float next_pts = ds_get_next_pts(d_video);
float d = next_pts > 0 ? next_pts - d_video->pts : d_video->pts - pts1;
frame_time = (d >= 0) ? d : 0.001;
frame_time = (d >= 0 && pts1 > 0) ? d : 0.001;
}
break;
}