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

ramiro subversion at mplayerhq.hu
Sun Aug 17 23:57:52 CEST 2008


Author: ramiro
Date: Sun Aug 17 23:57:52 2008
New Revision: 3416

Log:
Check second subblock against channel_params from first subblock.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 17 23:57:52 2008
@@ -1172,6 +1172,7 @@ static uint8_t *write_substrs(MLPEncodeC
                     ctx->sample_buffer += ctx->num_channels * dp->blocksize;
                     dp->blocksize = ctx->frame_size[ctx->frame_index] - dp->blocksize;
 
+                    memcpy(channel_params, ctx->channel_params, sizeof(ctx->channel_params));
                     memcpy(ctx->channel_params, backup_cp, sizeof(ctx->channel_params));
 
                     restart_frame = 0;
@@ -1304,6 +1305,7 @@ static int mlp_encode_frame(AVCodecConte
 
         clear_decoding_params(decoding_params);
         clear_channel_params (channel_params );
+        clear_channel_params(ctx->channel_params);
     } else {
     memcpy(decoding_params, ctx->decoding_params, sizeof(decoding_params));
     memcpy(channel_params, ctx->channel_params, sizeof(channel_params));



More information about the FFmpeg-soc mailing list