Skip to content
Snippets Groups Projects
Commit 2ed9e17e authored by Lukasz Marek's avatar Lukasz Marek
Browse files

lavf/audiointerleave: check for allocation failure

parent c61cdefa
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ int ff_audio_interleave_init(AVFormatContext *s, ...@@ -67,7 +67,8 @@ int ff_audio_interleave_init(AVFormatContext *s,
aic->time_base = time_base; aic->time_base = time_base;
aic->fifo_size = 100* *aic->samples; 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);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment