aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxf.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-08 13:48:52 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-08 13:48:52 +0000
commitebbe25d2a36a8622e023c95ae340eb0d3c84d470 (patch)
tree452c60e01cc0bfe8569438fb87226f09eaef0e82 /libavformat/mxf.c
parent43d1a1c05a51dfa340c95319be2608df98e6c3f4 (diff)
downloadffmpeg-ebbe25d2a36a8622e023c95ae340eb0d3c84d470.tar.gz
check av_new_stream return value
Originally committed as revision 11462 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r--libavformat/mxf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index d334c800d4..c7c7a6d43b 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)