projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d1a1c
)
check av_new_stream return value
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Tue, 8 Jan 2008 13:48:52 +0000
(13:48 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Tue, 8 Jan 2008 13:48:52 +0000
(13:48 +0000)
Originally committed as revision 11462 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mxf.c
patch
|
blob
|
history
diff --git
a/libavformat/mxf.c
b/libavformat/mxf.c
index
d334c80
..
c7c7a6d
100644
(file)
--- 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)