[FFmpeg-cvslog] mxfdec: Check for NULL component

Tomas Härdin git at videolan.org
Fri Feb 10 01:47:54 CET 2012


ffmpeg | branch: master | Tomas Härdin <tomas.hardin at codemill.se> | Thu Jan 26 13:21:34 2012 +0100| [effe3b9575bf5770b228df37675a976a68e8a5e3] | committer: Diego Biurrun

mxfdec: Check for NULL component

This fixes a SIGSEGV with zzuf1.mxf.

Signed-off-by: Diego Biurrun <diego at biurrun.de>

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

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

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



More information about the ffmpeg-cvslog mailing list