lavf/mxfdec: Search all components of material track for source package.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 5 Nov 2016 00:48:10 +0000 (01:48 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 3 Oct 2017 21:29:20 +0000 (23:29 +0200)
Fixes ticket #5925.

Reviewed-by: Marton
libavformat/mxfdec.c

index 1855f95..118e3e4 100644 (file)
@@ -1978,7 +1978,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
             source_package = mxf_resolve_source_package(mxf, component->source_package_uid);
             if (!source_package) {
                 av_log(mxf->fc, AV_LOG_TRACE, "material track %d: no corresponding source package found\n", material_track->track_id);
-                break;
+                continue;
             }
             for (k = 0; k < source_package->tracks_count; k++) {
                 if (!(temp_track = mxf_resolve_strong_ref(mxf, &source_package->tracks_refs[k], Track))) {