mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 03:12:08 +00:00
check av_new_stream return value
Originally committed as revision 11462 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
43d1a1c05a
commit
ebbe25d2a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user