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

spyfeng subversion at mplayerhq.hu
Fri Aug 1 17:30:36 CEST 2008


Author: spyfeng
Date: Fri Aug  1 17:30:35 2008
New Revision: 2971

Log:
mxf->header_start always 0, so remove it.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Fri Aug  1 17:30:35 2008
@@ -84,7 +84,6 @@ typedef struct {
 typedef struct MXFContext {
     UMID top_src_package_uid;
     int64_t header_byte_count;
-    int64_t header_start;
     int64_t header_byte_count_offset;
     int64_t header_footer_partition_offset;
     unsigned int random_state;
@@ -1022,9 +1021,6 @@ static int mux_write_header(AVFormatCont
     ByteIOContext *pb = s->pb;
     int64_t header_metadata_start;
 
-    // mark the header start position, for some fields update later
-    mxf->header_start = url_ftell(pb);
-
     // calculate the numner of essence container type
     mxf_build_essence_container_refs(s);
     mxf_write_partition(s, 0, 0, header_partition_key);
@@ -1081,7 +1077,7 @@ static int mux_write_footer(AVFormatCont
     MXFContext *mxf = s->priv_data;
     ByteIOContext *pb = s->pb;
 
-    int64_t this_partition = url_ftell(pb) - mxf->header_start;
+    int64_t this_partition = url_ftell(pb);
     mxf_write_partition(s, this_partition, 1, footer_partition_key);
 
     put_flush_packet(pb);



More information about the FFmpeg-soc mailing list