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

spyfeng subversion at mplayerhq.hu
Sun Aug 3 14:31:22 CEST 2008


Author: spyfeng
Date: Sun Aug  3 14:31:21 2008
New Revision: 2997

Log:
simplify the way for writing primer pack


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Sun Aug  3 14:31:21 2008
@@ -308,7 +308,6 @@ static const MXFCodecUL *mxf_get_essence
 static int mxf_write_primer_pack(AVFormatContext *s)
 {
     ByteIOContext *pb = s->pb;
-    const MXFLocalTagPair *local_tag_batch;
     int local_tag_number, i = 0;
 
     local_tag_number = sizeof(mxf_local_tag_batch) / sizeof(MXFLocalTagPair);
@@ -319,9 +318,9 @@ static int mxf_write_primer_pack(AVForma
     put_be32(pb, local_tag_number); // local_tag num
     put_be32(pb, 18); // item size, always 18 according to the specs
 
-    for (local_tag_batch = mxf_local_tag_batch; i < local_tag_number; local_tag_batch++, i++) {
-        put_be16(pb, local_tag_batch->local_tag);
-        put_buffer(pb, local_tag_batch->uid, 16);
+    for (i = 0; i < local_tag_number; i++) {
+        put_be16(pb, mxf_local_tag_batch[i].local_tag);
+        put_buffer(pb, mxf_local_tag_batch[i].uid, 16);
     }
     return 0;
 }



More information about the FFmpeg-soc mailing list