lavc: load entire fire

Originally committed to SVN as r342.
This commit is contained in:
David Lamparter 2006-04-15 00:21:15 +00:00
parent 7ddbd15d29
commit a0ed84e388
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,8 @@ void LAVCAudioProvider::GetAudio(void *buf, __int64 start, __int64 count)
samples = bytesout >> 1;
if (rsct) {
if ((__int64)(samples * resample_ratio) > _count)
samples = (__int64)(_count * resample_ratio);
if ((__int64)(samples * resample_ratio / codecContext->channels) > _count)
samples = (__int64)(_count / resample_ratio * codecContext->channels);
samples = audio_resample(rsct, _buf, buffer, samples / codecContext->channels);
assert(samples <= _count);