summaryrefslogtreecommitdiff
path: root/libavresample
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-20 20:40:24 +0100
committerAnton Khirnov <anton@khirnov.net>2014-04-13 11:21:20 +0200
commitac976ed91e323754e9a84509873ebdb437372797 (patch)
tree28b30f2e7149dc13a09e37fa4ce18bf92bd17823 /libavresample
parent13164e479f1c87829096c19003d2cc658ccc1fd4 (diff)
downloadffmpeg-ac976ed91e323754e9a84509873ebdb437372797.tar.gz
lavr: allocate the resampling buffer with a positive size
This fixes cases where very few input samples (fewer than needed for one output sample) are passed to lavr at the beginning. CC:libav-stable@libav.org
Diffstat (limited to 'libavresample')
-rw-r--r--libavresample/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavresample/utils.c b/libavresample/utils.c
index 63d653058c..35bee42b50 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);