From effe3b9575bf5770b228df37675a976a68e8a5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Thu, 26 Jan 2012 13:21:34 +0100 Subject: [PATCH] mxfdec: Check for NULL component This fixes a SIGSEGV with zzuf1.mxf. Signed-off-by: Diego Biurrun --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index f995844be5..7b61168277 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1311,7 +1311,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) break; } } - if (!source_track) + if (!source_track || !component) continue; if (!(source_track->sequence = mxf_resolve_strong_ref(mxf, &source_track->sequence_ref, Sequence))) {