audio_resample wants samples per channel

Originally committed to SVN as r340.
This commit is contained in:
David Lamparter 2006-04-14 23:51:15 +00:00
parent 8d0f650b58
commit 53d0cf0385
1 changed files with 1 additions and 1 deletions

View File

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