Commit c11aa9d2 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ac976ed9'

* commit 'ac976ed9':
  lavr: allocate the resampling buffer with a positive size
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents c955525f ac976ed9
......@@ -189,7 +189,7 @@ int avresample_open(AVAudioResampleContext *avr)
}
if (avr->resample_needed) {
avr->resample_out_buffer = ff_audio_data_alloc(avr->out_channels,
0, avr->internal_sample_fmt,
1024, avr->internal_sample_fmt,
"resample_out_buffer");
if (!avr->resample_out_buffer) {
ret = AVERROR(EINVAL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment