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

ramiro subversion at mplayerhq.hu
Sun Aug 10 16:50:22 CEST 2008


Author: ramiro
Date: Sun Aug 10 16:50:22 2008
New Revision: 3149

Log:
init_put_bits() closer to where it's used.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 10 16:50:22 2008
@@ -1065,8 +1065,6 @@ static int mlp_encode_frame(AVCodecConte
         int params_changed;
         int last_block = 0;
 
-        init_put_bits(&pb, buf, buf_size);
-
         if (avctx->frame_size < dp->blocksize) {
             dp->blocksize = avctx->frame_size;
             last_block = 1;
@@ -1076,6 +1074,8 @@ static int mlp_encode_frame(AVCodecConte
                                               filter_params,
                                               substr, write_headers);
 
+        init_put_bits(&pb, buf, buf_size);
+
         if (write_headers || params_changed) {
             put_bits(&pb, 1, 1);
 



More information about the FFmpeg-soc mailing list