[FFmpeg-soc] [soc]: r2835 - mxf/mxfenc.c
spyfeng
subversion at mplayerhq.hu
Mon Jul 21 18:55:21 CEST 2008
Author: spyfeng
Date: Mon Jul 21 18:55:20 2008
New Revision: 2835
Log:
fix bug in klv_encode_ber_length()
Modified:
mxf/mxfenc.c
Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c (original)
+++ mxf/mxfenc.c Mon Jul 21 18:55:20 2008
@@ -229,6 +229,7 @@ static int klv_encode_ber_length(ByteIOC
{
// Determine the best BER size
int size = 0, i;
+ uint64_t tmp = len;
if (len < 128) {
//short form
size = 1;
@@ -236,8 +237,8 @@ static int klv_encode_ber_length(ByteIOC
return size;
}
- while (len) {
- len >>= 8;
+ while (tmp) {
+ tmp >>= 8;
size ++;
}
More information about the FFmpeg-soc
mailing list