lavc: load entire fire
Originally committed to SVN as r342.
This commit is contained in:
parent
7ddbd15d29
commit
a0ed84e388
1 changed files with 2 additions and 2 deletions
|
@ -145,8 +145,8 @@ void LAVCAudioProvider::GetAudio(void *buf, __int64 start, __int64 count)
|
||||||
|
|
||||||
samples = bytesout >> 1;
|
samples = bytesout >> 1;
|
||||||
if (rsct) {
|
if (rsct) {
|
||||||
if ((__int64)(samples * resample_ratio) > _count)
|
if ((__int64)(samples * resample_ratio / codecContext->channels) > _count)
|
||||||
samples = (__int64)(_count * resample_ratio);
|
samples = (__int64)(_count / resample_ratio * codecContext->channels);
|
||||||
samples = audio_resample(rsct, _buf, buffer, samples / codecContext->channels);
|
samples = audio_resample(rsct, _buf, buffer, samples / codecContext->channels);
|
||||||
|
|
||||||
assert(samples <= _count);
|
assert(samples <= _count);
|
||||||
|
|
Loading…
Reference in a new issue