Apply container audio delay when the FFMS2 version used supports it. Closes #1251.

Originally committed to SVN as r5058.
This commit is contained in:
Thomas Goyne 2010-12-29 06:27:02 +00:00
parent ce2adcea79
commit bd7ac88f6b

View file

@ -179,7 +179,11 @@ void FFmpegSourceAudioProvider::LoadAudio(wxString filename) {
// warn user?
}
#if FFMS_VERSION >= ((2 << 24) | (14 << 16) | (1 << 8) | 0)
AudioSource = FFMS_CreateAudioSource(FileNameShort.utf8_str(), TrackNumber, Index, -1, &ErrInfo);
#else
AudioSource = FFMS_CreateAudioSource(FileNameShort.utf8_str(), TrackNumber, Index, &ErrInfo);
#endif
FFMS_DestroyIndex(Index);
Index = NULL;
if (!AudioSource) {