From 07aba86b37887c0aef7ea90af250fcf19062369b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Aug 2014 23:52:42 +0200 Subject: audio: add a mode to insert silence on severe A/V desync This is probably a stupid idea, but it can't be denied that this actually allows playing video without larger desync, even if video is too slow. --- player/core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index 594f105668..2530e8acd2 100644 --- a/player/core.h +++ b/player/core.h @@ -260,6 +260,8 @@ typedef struct MPContext { double delay; // AV sync: time until next frame should be shown double time_frame; + // Optional/additional AV sync compensation if video is too slow. + double insert_silence; // Set to true some time after a new frame has been shown, and it turns out // that this frame was the last one before video ends. bool playing_last_frame; -- cgit v1.2.3