Merge commit 'dccac759d39e761398d3d4172ae0b98c0186efa5' into release/1.1
* commit 'dccac759d39e761398d3d4172ae0b98c0186efa5': lavr: allocate the resampling buffer with a positive size Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -117,7 +117,7 @@ int avresample_open(AVAudioResampleContext *avr)
|
|||||||
}
|
}
|
||||||
if (avr->resample_needed) {
|
if (avr->resample_needed) {
|
||||||
avr->resample_out_buffer = ff_audio_data_alloc(avr->out_channels,
|
avr->resample_out_buffer = ff_audio_data_alloc(avr->out_channels,
|
||||||
0, avr->internal_sample_fmt,
|
1024, avr->internal_sample_fmt,
|
||||||
"resample_out_buffer");
|
"resample_out_buffer");
|
||||||
if (!avr->resample_out_buffer) {
|
if (!avr->resample_out_buffer) {
|
||||||
ret = AVERROR(EINVAL);
|
ret = AVERROR(EINVAL);
|
||||||
|
Reference in New Issue
Block a user