diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-13 19:27:01 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-13 19:46:02 +0200 |
commit | a4ce95de811698503075a5f0b513e595f11f97a4 (patch) | |
tree | 20785a9ff28439b08fb22993e25954731937bc25 /libmpcodecs/dec_audio.h | |
parent | 642ce15ef770dd5dbea7c7ee16cbf45f6e86feae (diff) | |
download | mpv-a4ce95de811698503075a5f0b513e595f11f97a4.tar.bz2 mpv-a4ce95de811698503075a5f0b513e595f11f97a4.tar.xz |
core: do initial A-V sync by modifying audio stream
Add code to enforce matching pts with video when (re)starting the
audio stream, by either cutting away the first samples or inserting
silence at the beginning. New option -noinitial-audio-sync can be used
to disable this and return to old behavior.
Diffstat (limited to 'libmpcodecs/dec_audio.h')
-rw-r--r-- | libmpcodecs/dec_audio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/dec_audio.h b/libmpcodecs/dec_audio.h index 3ec2cef8bf..c2b92c9818 100644 --- a/libmpcodecs/dec_audio.h +++ b/libmpcodecs/dec_audio.h @@ -25,6 +25,7 @@ void afm_help(void); int init_best_audio_codec(sh_audio_t *sh_audio, char** audio_codec_list, char** audio_fm_list); int decode_audio(sh_audio_t *sh_audio, int minlen); +void decode_audio_prepend_bytes(struct sh_audio *sh, int count, int byte); void resync_audio_stream(sh_audio_t *sh_audio); void skip_audio_frame(sh_audio_t *sh_audio); void uninit_audio(sh_audio_t *sh_audio); |