From 5e5e69d0787ae4939f3f8e8d6c0342310eda28ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Tue, 20 Dec 2011 17:38:27 +0100 Subject: [PATCH] mxfdec: Check for NULL component This fixes SIGSEGV with zzuf1.mxf --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index b6a63c90a2..59c8b4016b 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1276,7 +1276,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))) {