[FFmpeg-soc] [soc]: r3611 - in mxf: mxf.h mxfenc.c

spyfeng subversion at mplayerhq.hu
Mon Aug 25 17:04:16 CEST 2008


Author: spyfeng
Date: Mon Aug 25 17:04:16 2008
New Revision: 3611

Log:
set the correct size of essenc_container_ul_sign[].


Modified:
   mxf/mxf.h
   mxf/mxfenc.c

Modified: mxf/mxf.h
==============================================================================
--- mxf/mxf.h	(original)
+++ mxf/mxf.h	Mon Aug 25 17:04:16 2008
@@ -63,7 +63,7 @@ typedef struct {
 
 extern const MXFDataDefinitionUL ff_mxf_data_definition_uls[];
 extern const MXFCodecUL ff_mxf_codec_uls[];
-extern const MXFCodecUL ff_mxf_essence_container_uls[];
+extern const MXFCodecUL ff_mxf_essence_container_uls[6];
 
 #ifdef DEBUG
 #define PRINT_KEY(pc, s, x) dprintf(pc, "%s %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n", s, \

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Mon Aug 25 17:04:16 2008
@@ -250,8 +250,8 @@ static int mxf_write_essence_container_r
     ByteIOContext *pb = s->pb;
     AVStream *st;
     int i, count = 0, j = 0;
-    int essence_container_ul_sign[1024] = { 0 };
     const MXFCodecUL *codec_ul;
+    int essence_container_ul_sign[sizeof(ff_mxf_essence_container_uls) / sizeof(MXFCodecUL)] = { 0 };
 
     for (codec_ul = ff_mxf_essence_container_uls; codec_ul->id; codec_ul++) {
         for (i = 0; i < s->nb_streams; i++) {



More information about the FFmpeg-soc mailing list