Commit a6407ec0 authored by Thomas Guillem's avatar Thomas Guillem

aout: change an assert to a critical error

This error is triggered when an aout module request a linear format from a non
linear one.

Fixes #18655
parent 439f5799
......@@ -160,7 +160,11 @@ static int aout_FiltersPipelineCreate(vlc_object_t *obj, filter_t **filters,
audio_sample_format_t input = *infmt;
unsigned n = 0;
assert (AOUT_FMT_LINEAR(&input));
if (!AOUT_FMT_LINEAR(&input))
msg_Err(obj, "Can't convert non linear input");
return -1;
/* Remix channels */
if (infmt->i_physical_channels != outfmt->i_physical_channels
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment