diff --git a/libavresample/utils.c b/libavresample/utils.c index e533760abc..6d4509d7c1 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -375,7 +375,8 @@ int avresample_convert(AVAudioResampleContext *avr, void **output, } } - return handle_buffered_output(avr, &output_buffer, current_buffer); + return handle_buffered_output(avr, output ? &output_buffer : NULL, + current_buffer); } int avresample_available(AVAudioResampleContext *avr)