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

ramiro subversion at mplayerhq.hu
Tue Aug 26 05:04:46 CEST 2008


Author: ramiro
Date: Tue Aug 26 05:04:46 2008
New Revision: 3625

Log:
Fix bug introduced by previous commit. All access units must have their
parameters compared.


Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Tue Aug 26 05:04:46 2008
@@ -1741,7 +1741,7 @@ static void set_major_params(MLPEncodeCo
         ctx->prev_decoding_params = &ctx->restart_decoding_params[substr];
         ctx->prev_channel_params = ctx->restart_channel_params;
 
-        for (index = 0; index < ctx->number_of_frames; index++) {
+        for (index = 0; index < MAJOR_HEADER_INTERVAL; index++) {
             for (subblock = 0; subblock <= num_subblocks; subblock++) {
                 ctx->cur_decoding_params = &ctx->decoding_params[MAJOR_HEADER_INTERVAL-1][MAJOR_HEADER_INTERVAL-1][index][subblock][substr];
                 ctx->cur_channel_params = ctx->channel_params[MAJOR_HEADER_INTERVAL-1][MAJOR_HEADER_INTERVAL-1][index][subblock];



More information about the FFmpeg-soc mailing list