diff options
author | wm4 <wm4@nowhere> | 2014-08-15 23:52:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-15 23:52:42 +0200 |
commit | 07aba86b37887c0aef7ea90af250fcf19062369b (patch) | |
tree | 0ea00b6aca7e6d04340182ab310128f9f8409031 /player/core.h | |
parent | 72ee9bb56c2f145569ca38e2066950fd7e6e8a4e (diff) | |
download | mpv-07aba86b37887c0aef7ea90af250fcf19062369b.tar.bz2 mpv-07aba86b37887c0aef7ea90af250fcf19062369b.tar.xz |
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.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |