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

spyfeng subversion at mplayerhq.hu
Thu Jul 31 15:12:45 CEST 2008


Author: spyfeng
Date: Thu Jul 31 15:12:45 2008
New Revision: 2953

Log:
simplify caculate length of mxf_write_identification()


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Thu Jul 31 15:12:45 2008
@@ -436,13 +436,12 @@ static int mxf_write_identification(AVFo
 
     company_name_len = sizeof("FFmpeg");
     product_name_len = sizeof("OP1a Muxer");
+
+    length = 80 + company_name_len + product_name_len;
     if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
         version_string_len = sizeof(LIBAVFORMAT_IDENT);
-        length = 84 + company_name_len + product_name_len + version_string_len;
-    } else {
-        length = 80 + company_name_len + product_name_len;
+        length += 4 + version_string_len;
     }
-
     klv_encode_ber_length(pb, length);
 
     // write uid



More information about the FFmpeg-soc mailing list