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

spyfeng subversion at mplayerhq.hu
Wed Jul 30 18:25:44 CEST 2008


Author: spyfeng
Date: Wed Jul 30 18:25:41 2008
New Revision: 2936

Log:
remove useless code line in klv_encode_ber_length(),
return 0 directly.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Wed Jul 30 18:25:41 2008
@@ -269,7 +269,6 @@ static int klv_encode_ber_length(ByteIOC
     uint64_t tmp = len;
     if (len < 128) {
         //short form
-        size = 1;
         put_byte(pb, len);
         return 1;
     }
@@ -285,7 +284,7 @@ static int klv_encode_ber_length(ByteIOC
         size --;
         put_byte(pb, len >> 8 * size & 0xff);
     }
-    return size;
+    return 0;
 }
 
 static const MXFCodecUL *mxf_get_essence_container_ul(const MXFCodecUL *uls, enum CodecID type)



More information about the FFmpeg-soc mailing list