mirror of https://github.com/mpv-player/mpv
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:
parent
1d6919b492
commit
b19a9bf88d
|
@ -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 next_pts = ds_get_next_pts(d_video);
|
||||||
float d = next_pts > 0 ? next_pts - d_video->pts : d_video->pts - pts1;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue