[FFmpeg-devel] [PATCH}lavf/mxfdec: Search all components of material track for source package

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Nov 5 02:50:37 EET 2016


Hi!

Attached patch fixes ticket #5925 here.

Please review, Carl Eugen
-------------- next part --------------
From c928270086e6021fba7d6d3201be7ea569e37253 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Sat, 5 Nov 2016 01:48:10 +0100
Subject: [PATCH] lavf/mxfdec: Search all components of material track for
 source package.

Fixes ticket #5925.
---
 libavformat/mxfdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index d2166ee..c687ce5 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1974,7 +1974,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))) {
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list