[FFmpeg-soc] [soc]: r3268 - mxf/mxfenc.c
spyfeng
subversion at mplayerhq.hu
Thu Aug 14 15:49:08 CEST 2008
Author: spyfeng
Date: Thu Aug 14 15:49:08 2008
New Revision: 3268
Log:
remove uncessary code lines in klv_encode_ber_length()
Modified:
mxf/mxfenc.c
Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c (original)
+++ mxf/mxfenc.c Thu Aug 14 15:49:08 2008
@@ -215,15 +215,14 @@ static int mxf_generate_reference(AVForm
static int klv_encode_ber_length(ByteIOContext *pb, uint64_t len)
{
// Determine the best BER size
- int size = 0;
- uint64_t tmp = len;
+ int size;
if (len < 128) {
//short form
put_byte(pb, len);
return 1;
}
- size = (av_log2(tmp) >> 3) + 1;
+ size = (av_log2(len) >> 3) + 1;
// long form
put_byte(pb, 0x80 + size);
More information about the FFmpeg-soc
mailing list