diff options
author | Thilo Borgmann <thilo.borgmann@googlemail.com> | 2010-01-05 01:16:02 +0000 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@googlemail.com> | 2010-01-05 01:16:02 +0000 |
commit | 71fe4573bc6c70a04fd0410173e2b97d705b29b6 (patch) | |
tree | 80249364d691a270ea8255990bf46b353b983fdd /libavcodec/alsdec.c | |
parent | 6698d13998f983a5d592c5df525d67882c9c186f (diff) | |
download | ffmpeg-71fe4573bc6c70a04fd0410173e2b97d705b29b6.tar.gz |
Replace array operator [] with direct access via pointer.
Solves issue 1657.
Originally committed as revision 21029 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r-- | libavcodec/alsdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index f9eea8d5ea..dd3278de5e 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -739,7 +739,7 @@ static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) 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(ALSDecContext *ctx, ALSBlockData *bd) 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; } |