[FFmpeg-cvslog] r15364 - trunk/libavcodec/aac.c
superdump
subversion
Thu Sep 18 18:02:51 CEST 2008
Author: superdump
Date: Thu Sep 18 18:02:51 2008
New Revision: 15364
Log:
Zero 'idx' for each iteration of the coupling gain loop and as it is only used
within this loop, we can move its declaration there too.
Based on a patch by Alex Converse (alex converse gmail com)
Modified:
trunk/libavcodec/aac.c
Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c (original)
+++ trunk/libavcodec/aac.c Thu Sep 18 18:02:51 2008
@@ -950,7 +950,7 @@ static int decode_cpe(AACContext * ac, G
*/
static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che) {
int num_gain = 0;
- int c, g, sfb, ret, idx = 0;
+ int c, g, sfb, ret;
int sign;
float scale;
SingleChannelElement * sce = &che->ch[0];
@@ -985,6 +985,7 @@ static int decode_cce(AACContext * ac, G
return ret;
for (c = 0; c < num_gain; c++) {
+ int idx = 0;
int cge = 1;
int gain = 0;
float gain_cache = 1.;
More information about the ffmpeg-cvslog
mailing list