OSDN Git Service

10l, check container_ul existence
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 3 Aug 2006 11:57:28 +0000 (11:57 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 3 Aug 2006 11:57:28 +0000 (11:57 +0000)
Originally committed as revision 5907 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxf.c

index 4c46277..a01b195 100644 (file)
@@ -41,7 +41,7 @@
  * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1
  */
 
-//#define DEBUG
+#define DEBUG
 
 #include "avformat.h"
 
@@ -840,7 +840,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
                     st->codec->codec_id = CODEC_ID_PCM_S32BE;
             }
         }
-        if (container_ul->wrapping == Clip) {
+        if (container_ul && container_ul->wrapping == Clip) {
             dprintf("stream %d: clip wrapped essence\n", st->index);
             st->need_parsing = 1;
         }