Commit b54354ed authored by bcoudurier's avatar bcoudurier

check av_new_stream return value

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11462 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 85db15fc
...@@ -775,6 +775,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) ...@@ -775,6 +775,10 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
continue; continue;
st = av_new_stream(mxf->fc, source_track->track_id); 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->priv_data = source_track;
st->duration = component->duration; st->duration = component->duration;
if (st->duration == -1) if (st->duration == -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment