aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorTomas Härdin <tomas.hardin@codemill.se>2011-12-20 17:38:27 +0100
committerTomas Härdin <tomas.hardin@codemill.se>2011-12-21 13:48:39 +0100
commit5e5e69d0787ae4939f3f8e8d6c0342310eda28ee (patch)
treeb3ceff7140d3fa6957c1754879d6a4228182b2f9 /libavformat/mxfdec.c
parent5b718009b2c54a6ade9241fe5ae175e6f069791b (diff)
downloadffmpeg-5e5e69d0787ae4939f3f8e8d6c0342310eda28ee.tar.gz
mxfdec: Check for NULL component
This fixes SIGSEGV with zzuf1.mxf
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
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))) {