[SCM] libav/experimental: check av_new_stream return value
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:11:31 UTC 2013
The following commit has been merged in the experimental branch:
commit ebbe25d2a36a8622e023c95ae340eb0d3c84d470
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Tue Jan 8 13:48:52 2008 +0000
check av_new_stream return value
Originally committed as revision 11462 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index d334c80..c7c7a6d 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -775,6 +775,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
continue;
st = av_new_stream(mxf->fc, source_track->track_id);
+ if (!st) {
+ av_log(mxf->fc, AV_LOG_ERROR, "could not allocate stream\n");
+ return -1;
+ }
st->priv_data = source_track;
st->duration = component->duration;
if (st->duration == -1)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list