avformat/mxfdec: check if source_package is NULL

Fixes ticket #5554.

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2016-05-31 22:48:24 +02:00
parent 7a2a8b541a
commit 4bee44007a
1 changed files with 1 additions and 1 deletions

View File

@ -1914,7 +1914,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
break;
}
}
if (!source_track || !component)
if (!source_track || !component || !source_package)
continue;
if (!(source_track->sequence = mxf_resolve_strong_ref(mxf, &source_track->sequence_ref, Sequence))) {