This fixes cases where very few input samples (fewer than needed for one
output sample) are passed to lavr at the beginning.
CC:[email protected]
---
Already oked by Justin on IRC, sending here for the record.
Will push soonish unless someone complains.
---
libavresample/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavresample/utils.c b/libavresample/utils.c
index 63d6530..35bee42 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);
--
1.7.10.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel