Commit db0e7bd0 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

lavr: mix: validate internal sample format in ff_audio_mix_init()

parent 66a29797
......@@ -305,6 +305,14 @@ int ff_audio_mix_init(AVAudioResampleContext *avr)
int ret;
if (avr->internal_sample_fmt != AV_SAMPLE_FMT_S16P &&
avr->internal_sample_fmt != AV_SAMPLE_FMT_FLTP) {
av_log(avr, AV_LOG_ERROR, "Unsupported internal format for "
"mixing: %s\n",
/* build matrix if the user did not already set one */
if (!avr->am->matrix) {
int i, j;
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