[FFmpeg-cvslog] r21029 - trunk/libavcodec/alsdec.c
thilo.borgmann
subversion
Tue Jan 5 02:16:02 CET 2010
Author: thilo.borgmann
Date: Tue Jan 5 02:16:02 2010
New Revision: 21029
Log:
Replace array operator [] with direct access via pointer.
Solves issue 1657.
Modified:
trunk/libavcodec/alsdec.c
Modified: trunk/libavcodec/alsdec.c
==============================================================================
--- trunk/libavcodec/alsdec.c Tue Jan 5 02:14:38 2010 (r21028)
+++ trunk/libavcodec/alsdec.c Tue Jan 5 02:16:02 2010 (r21029)
@@ -739,7 +739,7 @@ static int decode_var_block_data(ALSDecC
y = 1 << 19;
for (sb = 0; sb < smp; sb++)
- y += MUL64(lpc_cof[sb],raw_samples[smp - (sb + 1)]);
+ y += MUL64(lpc_cof[sb], *(raw_samples + smp - (sb + 1)));
raw_samples[smp] -= y >> 20;
parcor_to_lpc(smp, quant_cof, lpc_cof);
@@ -780,7 +780,7 @@ static int decode_var_block_data(ALSDecC
y = 1 << 19;
for (sb = 0; sb < opt_order; sb++)
- y += MUL64(bd->lpc_cof[sb],raw_samples[smp - (sb + 1)]);
+ y += MUL64(bd->lpc_cof[sb], *(raw_samples + smp - (sb + 1)));
raw_samples[smp] -= y >> 20;
}
More information about the ffmpeg-cvslog
mailing list