Browse Source

mxfdec: Check for NULL component

This fixes SIGSEGV with zzuf1.mxf
(cherry picked from commit 5e5e69d078)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9.1
Tomas Härdin Michael Niedermayer 14 years ago
parent
commit
7e35c3e177
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mxfdec.c

+ 1
- 1
libavformat/mxfdec.c View File

@@ -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))) {


Loading…
Cancel
Save