[SCM] libav/experimental: fail if stream fifo could not be allocated
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:46:15 UTC 2013
The following commit has been merged in the experimental branch:
commit 4969cc0bd84e5f69355f6428cddee22ba61ff897
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Fri May 22 19:11:56 2009 +0000
fail if stream fifo could not be allocated
Originally committed as revision 18897 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index cd7be89..b7bb69b 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -382,6 +382,8 @@ static int mpeg_mux_init(AVFormatContext *ctx)
return -1;
}
stream->fifo= av_fifo_alloc(16);
+ if (!stream->fifo)
+ goto fail;
}
bitrate = 0;
audio_bitrate = 0;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list