diff options
author | Tomas Härdin <tomas.hardin@codemill.se> | 2011-12-20 17:38:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 20:50:20 +0100 |
commit | 7e35c3e177ad03411ca3a275ecac4bc9891f89b5 (patch) | |
tree | 17f033f8cae0d46d1349af99dd54d6fd36289403 | |
parent | 0f38b11939ad3e3d93a165576006c1cdb6c89e95 (diff) | |
download | ffmpeg-7e35c3e177ad03411ca3a275ecac4bc9891f89b5.tar.gz |
mxfdec: Check for NULL component
This fixes SIGSEGV with zzuf1.mxf
(cherry picked from commit 5e5e69d0787ae4939f3f8e8d6c0342310eda28ee)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 4a90827374..d3db5461ac 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1275,7 +1275,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))) { |