[FFmpeg-cvslog] mxfdec: Check for NULL component

Tomas Härdin git at videolan.org
Thu Dec 22 14:32:43 CET 2011


ffmpeg | branch: master | Tomas Härdin <tomas.hardin at codemill.se> | Tue Dec 20 17:38:27 2011 +0100| [5e5e69d0787ae4939f3f8e8d6c0342310eda28ee] | committer: Tomas Härdin

mxfdec: Check for NULL component

This fixes SIGSEGV with zzuf1.mxf

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e5e69d0787ae4939f3f8e8d6c0342310eda28ee
---

 libavformat/mxfdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index b6a63c9..59c8b40 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))) {



More information about the ffmpeg-cvslog mailing list