diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-03 18:30:59 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-03 18:30:59 +0000 |
commit | b19a9bf88d58a4ee9b969326dd90edc2b85c06f4 (patch) | |
tree | de373736004764a02caf72109491f1ec8ce9398b /libmpdemux | |
parent | 1d6919b49225e2b634b539bdb1863111c32adb51 (diff) | |
download | mpv-b19a9bf88d58a4ee9b969326dd90edc2b85c06f4.tar.bz2 mpv-b19a9bf88d58a4ee9b969326dd90edc2b85c06f4.tar.xz |
Workaround for live Real streams starting with nonzero pts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19661 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/video.c b/libmpdemux/video.c index 2bff7fa75c..f38db02820 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -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; } |