forked from mia/Aegisub
Use FFMS2 constant in place of magic number
This commit is contained in:
parent
a1ec3767e4
commit
3ba7358bfe
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ void FFmpegSourceAudioProvider::LoadAudio(agi::fs::path const& filename) {
|
||||||
// update access time of index file so it won't get cleaned away
|
// update access time of index file so it won't get cleaned away
|
||||||
agi::fs::Touch(CacheName);
|
agi::fs::Touch(CacheName);
|
||||||
|
|
||||||
AudioSource = FFMS_CreateAudioSource(filename.string().c_str(), TrackNumber, Index, -1, &ErrInfo);
|
AudioSource = FFMS_CreateAudioSource(filename.string().c_str(), TrackNumber, Index, FFMS_DELAY_FIRST_VIDEO_TRACK, &ErrInfo);
|
||||||
if (!AudioSource)
|
if (!AudioSource)
|
||||||
throw agi::AudioProviderError(std::string("Failed to open audio track: ") + ErrInfo.Buffer);
|
throw agi::AudioProviderError(std::string("Failed to open audio track: ") + ErrInfo.Buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue