Mercurial > libavcodec.hg
changeset 10774:fadd5dfac0f0 libavcodec
Replace array operator [] with direct access via pointer.
Solves issue 1657.
author | thilo.borgmann |
---|---|
date | Tue, 05 Jan 2010 01:16:02 +0000 |
parents | 8413193405c5 |
children | 35e175942ee2 |
files | alsdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/alsdec.c Tue Jan 05 01:14:38 2010 +0000 +++ b/alsdec.c Tue Jan 05 01:16:02 2010 +0000 @@ -739,7 +739,7 @@ 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 @@ 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; }