parent
ef40189a2b
commit
c21a6dd1d9
1 changed files with 4 additions and 1 deletions
|
@ -145,8 +145,11 @@ void LAVCAudioProvider::GetAudio(void *buf, __int64 start, __int64 count)
|
|||
samples = audio_resample(rsct, _buf, buffer, samples);
|
||||
|
||||
assert(samples <= _count);
|
||||
} else
|
||||
} else {
|
||||
if (samples > _count)
|
||||
samples = _count;
|
||||
memcpy(_buf, buffer, samples << 1);
|
||||
}
|
||||
|
||||
_buf += samples;
|
||||
_count -= samples;
|
||||
|
|
Loading…
Reference in a new issue