diff options
author | Tomas Härdin <tomas.hardin@codemill.se> | 2012-01-26 16:21:34 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-02-09 15:41:50 +0400 |
commit | effe3b9575bf5770b228df37675a976a68e8a5e3 (patch) | |
tree | 43905a369d402fe60553fe9af41539c5b88dc62a /libavformat | |
parent | 29fc8f50cd35f83ab3472509835881bc96035e6a (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.c | 2 |
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))) { |