[FFmpeg-cvslog] lavf/audiointerleave: check for allocation failure
Lukasz Marek
git at videolan.org
Tue May 20 00:35:48 CEST 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sun May 11 05:33:56 2014 +0200| [2ed9e17ed1793b3b66ed27c0a113676a46eb9871] | committer: Lukasz Marek
lavf/audiointerleave: check for allocation failure
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ed9e17ed1793b3b66ed27c0a113676a46eb9871
---
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);
}
}
More information about the ffmpeg-cvslog
mailing list