Commit a7454852 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: check that allocation of in/out_convert succeeded

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e5a73626
......@@ -369,6 +369,8 @@ av_assert0(s->out.ch_count);
s->out_convert= swri_audio_convert_alloc(s->out_sample_fmt,
s->int_sample_fmt, s->out.ch_count, NULL, 0);
if (!s->in_convert || !s->out_convert)
return AVERROR(ENOMEM);
s->postin= s->in;
s->preout= s->out;
......
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