aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-04 20:14:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-04 20:14:18 +0200
commitb34fce9c5470ac5a5d7cd3bb522768e6df1e4c3a (patch)
tree481599e6559d52416cb5d022a7ff676fd1fad61f
parent742f9aa8792827fe8718247045ab64401c42e46e (diff)
parent9d02e38d3f03100784348ff75fd181d2aaad7e43 (diff)
downloadffmpeg-b34fce9c5470ac5a5d7cd3bb522768e6df1e4c3a.tar.gz
Merge commit '9d02e38d3f03100784348ff75fd181d2aaad7e43' into release/2.2
* commit '9d02e38d3f03100784348ff75fd181d2aaad7e43': lavr: allocate the resampling buffer with a positive size Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavresample/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavresample/utils.c b/libavresample/utils.c
index 551a7e075e..3a335c0587 100644
--- a/libavresample/utils.c
+++ b/libavresample/utils.c
@@ -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);