[FFmpeg-cvslog] r17419 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Wed Feb 18 03:57:41 CET 2009


Author: bcoudurier
Date: Wed Feb 18 03:57:41 2009
New Revision: 17419

Log:
start counting track number from 0

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	Wed Feb 18 03:18:52 2009	(r17418)
+++ trunk/libavformat/mxfenc.c	Wed Feb 18 03:57:41 2009	(r17419)
@@ -1466,15 +1466,13 @@ static int mxf_write_header(AVFormatCont
 
         sc->codec_ul = &mxf_essence_container_uls[sc->index].codec_ul;
 
-        if (!present[sc->index]) {
-            present[sc->index] = 1;
-            mxf->essence_container_count++;
-        } else
-            present[sc->index]++;
-
         memcpy(sc->track_essence_element_key, mxf_essence_container_uls[sc->index].element_ul, 15);
         sc->track_essence_element_key[15] = present[sc->index];
         PRINT_KEY(s, "track essence element key", sc->track_essence_element_key);
+
+        if (!present[sc->index])
+            mxf->essence_container_count++;
+        present[sc->index]++;
     }
 
     if (s->oformat == &mxf_d10_muxer) {




More information about the ffmpeg-cvslog mailing list