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

ramiro subversion at mplayerhq.hu
Sat Aug 30 02:04:14 CEST 2008


Author: ramiro
Date: Sat Aug 30 02:04:13 2008
New Revision: 3672

Log:
Clear channel and decoding params before each use.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sat Aug 30 02:04:13 2008
@@ -452,7 +452,7 @@ static av_cold int mlp_encode_init(AVCod
     unsigned int lossless_check_data_size;
     unsigned int lpc_sample_buffer_size;
     unsigned int frame_size_size;
-    unsigned int substr, index, index2, index3;
+    unsigned int substr;
 
     if (avctx->strict_std_compliance > -1 /* inofficial */) {
         av_log(avctx, AV_LOG_ERROR, "The bitstream generated by this encoder "
@@ -577,15 +577,6 @@ static av_cold int mlp_encode_init(AVCod
     clear_channel_params(restart_channel_params);
     clear_decoding_params(restart_decoding_params);
 
-    for (index3 = 0; index3 < MAJOR_HEADER_INTERVAL; index3++) {
-    for (index2 = 0; index2 < MAJOR_HEADER_INTERVAL; index2++) {
-    for (index = 0; index < MAJOR_HEADER_INTERVAL + 1; index++) {
-            default_decoding_params(ctx, ctx->decoding_params[index3][index2][index]);
-            clear_channel_params(ctx->channel_params[index3][index2][index]);
-    }
-    }
-    }
-
     dsputil_init(&ctx->dsp, avctx);
 
     return 0;
@@ -2200,6 +2191,7 @@ input_and_return:
 
         for (index = 0; index < ctx->number_of_frames + 1; index++) {
             clear_channel_params(ctx->channel_params[ctx->seq_index][ctx->frame_index][index]);
+            default_decoding_params(ctx, ctx->decoding_params[ctx->seq_index][ctx->frame_index][index]);
         }
 
         input_to_sample_buffer(ctx);



More information about the FFmpeg-soc mailing list