mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
swr: check that allocation of in/out_convert succeeded
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e5a736261b
commit
a74548521b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user