[FFmpeg-devel] [PATCH 09/10] lavf/audiointerleave: check for allocation failure
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sun May 11 05:42:05 CEST 2014
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
libavformat/audiointerleave.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/audiointerleave.c b/libavformat/audiointerleave.c
index 1243f43..97bd801 100644
--- a/libavformat/audiointerleave.c
+++ b/libavformat/audiointerleave.c
@@ -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);
}
}
--
1.9.1
More information about the ffmpeg-devel
mailing list