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

ramiro subversion at mplayerhq.hu
Sun Aug 17 03:39:42 CEST 2008


Author: ramiro
Date: Sun Aug 17 03:39:42 2008
New Revision: 3368

Log:
Initialize PutBitContext closer to start of loop, to prepare for adding a new loop.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 17 03:39:42 2008
@@ -1105,6 +1105,8 @@ static uint8_t *write_substrs(MLPEncodeC
         int params_changed;
         int last_block = 0;
 
+        init_put_bits(&pb, buf, buf_size);
+
         if (ctx->frame_size[ctx->frame_index] < dp->blocksize) {
             dp->blocksize = ctx->frame_size[ctx->frame_index];
             last_block = 1;
@@ -1116,8 +1118,6 @@ static uint8_t *write_substrs(MLPEncodeC
                                               channel_params,
                                               substr);
 
-        init_put_bits(&pb, buf, buf_size);
-
         if (restart_frame || params_changed) {
             put_bits(&pb, 1, 1);
 



More information about the FFmpeg-soc mailing list