[FFmpeg-soc] [soc]: r3245 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Wed Aug 13 23:37:11 CEST 2008


Author: ramiro
Date: Wed Aug 13 23:37:11 2008
New Revision: 3245

Log:
Don't use intermediate var for calculation of total_length.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Wed Aug 13 23:37:11 2008
@@ -1015,8 +1015,7 @@ static int mlp_encode_frame(AVCodecConte
         buf += put_bits_count(&pb) >> 3;
     }
 
-    length = buf - buf2;
-    total_length += length;
+    total_length += buf - buf2;
 
     /* Write headers. */
     length = total_length / 2;



More information about the FFmpeg-soc mailing list