summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorTomas Härdin <tomas.hardin@codemill.se>2012-01-26 13:21:34 +0100
committerDiego Biurrun <diego@biurrun.de>2012-02-09 12:41:50 +0100
commiteffe3b9575bf5770b228df37675a976a68e8a5e3 (patch)
tree43905a369d402fe60553fe9af41539c5b88dc62a /libavformat
parent29fc8f50cd35f83ab3472509835881bc96035e6a (diff)
mxfdec: Check for NULL component
This fixes a SIGSEGV with zzuf1.mxf. Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
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))) {