vlc | branch: master | Steve Lhomme <[email protected]> | Thu Jan 21 07:48:25 
2021 +0100| [21d7caa0a11265879fadb1a057a8284c542c1ab7] | committer: Steve Lhomme

video_output: use the actual frame rate to estimate too late frames

With a more accurate value of the lateness we don't need to restrict it to
half a frame. There is still the VOUT_MWAIT_TOLERANCE which ensures a frame
that is considered not late should be around 4ms early.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21d7caa0a11265879fadb1a057a8284c542c1ab7
---

 src/video_output/video_output.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index ccbf099ead..d14e5cddaf 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1103,7 +1103,6 @@ static picture_t 
*ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
                     vlc_tick_t late_threshold;
                     if (decoded->format.i_frame_rate && 
decoded->format.i_frame_rate_base) {
                         late_threshold = 
vlc_tick_from_samples(decoded->format.i_frame_rate_base, 
decoded->format.i_frame_rate);
-                        late_threshold /=  2;
                     }
                     else
                         late_threshold = VOUT_DISPLAY_LATE_THRESHOLD;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to