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

spyfeng subversion at mplayerhq.hu
Wed Aug 20 16:59:41 CEST 2008


Author: spyfeng
Date: Wed Aug 20 16:59:41 2008
New Revision: 3483

Log:
set track_essence_element_key before put_buffer(), this will simpler.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Wed Aug 20 16:59:41 2008
@@ -467,13 +467,12 @@ static void mxf_write_track(AVFormatCont
     if (type != MaterialPackage) {
         for (element = mxf_essence_element_key; element->id != CODEC_ID_NONE; element++) {
             if (st->codec->codec_id== element->id) {
-                // write track number
-                put_buffer(pb, element->uid + 12, 3);
-                put_byte(pb, element->uid[15] + 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];
+                // write track number
+                put_buffer(pb, sc->track_essence_element_key + 12, 4);
+
                 track_number_sign[i] ++;
                 break;
             }



More information about the FFmpeg-soc mailing list