Commit 4590d073 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Carl Eugen Hoyos

lavf/mxfdec: Search all components of material track for source package.

Fixes ticket #5925.

Reviewed-by: Marton
parent 9ba9c08a
...@@ -1978,7 +1978,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) ...@@ -1978,7 +1978,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
source_package = mxf_resolve_source_package(mxf, component->source_package_uid); source_package = mxf_resolve_source_package(mxf, component->source_package_uid);
if (!source_package) { if (!source_package) {
av_log(mxf->fc, AV_LOG_TRACE, "material track %d: no corresponding source package found\n", material_track->track_id); 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++) { for (k = 0; k < source_package->tracks_count; k++) {
if (!(temp_track = mxf_resolve_strong_ref(mxf, &source_package->tracks_refs[k], Track))) { if (!(temp_track = mxf_resolve_strong_ref(mxf, &source_package->tracks_refs[k], Track))) {
......
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