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

spyfeng subversion at mplayerhq.hu
Wed Jul 30 17:02:19 CEST 2008


Author: spyfeng
Date: Wed Jul 30 17:02:18 2008
New Revision: 2923

Log:
use sizeof() instead of strlen()


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Wed Jul 30 17:02:18 2008
@@ -436,10 +436,10 @@ static int mxf_write_identification(AVFo
 
     put_buffer(pb, klv->key, 16);
 
-    company_name_len = strlen("FFmpeg") + 1;
-    product_name_len = strlen("OP1a Muxer") + 1;
+    company_name_len = sizeof("FFmpeg");
+    product_name_len = sizeof("OP1a Muxer");
     if (!(s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT)) {
-        version_string_len = strlen(LIBAVFORMAT_IDENT) + 1;
+        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;



More information about the FFmpeg-soc mailing list