avformat/mxfdec: check if source_package is NULL
authorMarton Balint <cus@passwd.hu>
Tue, 31 May 2016 20:48:24 +0000 (22:48 +0200)
committerMarton Balint <cus@passwd.hu>
Mon, 13 Jun 2016 20:43:22 +0000 (22:43 +0200)
Fixes ticket #5554.

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mxfdec.c

index f8cf922..9bf676c 100644 (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))) {