lavf/audiointerleave: check for allocation failure
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
c61cdefa4d
commit
2ed9e17ed1
@ -67,7 +67,8 @@ int ff_audio_interleave_init(AVFormatContext *s,
|
||||
aic->time_base = time_base;
|
||||
|
||||
aic->fifo_size = 100* *aic->samples;
|
||||
aic->fifo= av_fifo_alloc_array(100, *aic->samples);
|
||||
if (!(aic->fifo= av_fifo_alloc_array(100, *aic->samples)))
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user