Commit 96843413 authored by Anton Khirnov's avatar Anton Khirnov

lavr: do not try to copy to uninitialized output audio data.

This would happen at least when lavr is used as a fifo with no
conversion.
parent 0982b0a4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment