[FFmpeg-soc] [soc]: r3454 - mxf/mxfenc.c

spyfeng subversion at mplayerhq.hu
Tue Aug 19 16:24:50 CEST 2008


Author: spyfeng
Date: Tue Aug 19 16:24:50 2008
New Revision: 3454

Log:
fix potential bug for setting track_essence_element_key.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Tue Aug 19 16:24:50 2008
@@ -505,10 +505,11 @@ static int mxf_write_track(AVFormatConte
                 // write track number
                 put_buffer(pb, element->uid + 12, 3);
                 put_byte(pb, element->uid[15] + track_number_sign[i]);
-                track_number_sign[i] ++;
 
                 // set essence_element key
                 memcpy(sc->track_essence_element_key, element->uid, 16);
+                sc->track_essence_element_key[15] += track_number_sign[i];
+                track_number_sign[i] ++;
                 break;
             }
             i++;



More information about the FFmpeg-soc mailing list