projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6698d13
)
Replace array operator [] with direct access via pointer.
author
Thilo Borgmann
<thilo.borgmann@googlemail.com>
Tue, 5 Jan 2010 01:16:02 +0000
(
01:16
+0000)
committer
Thilo Borgmann
<thilo.borgmann@googlemail.com>
Tue, 5 Jan 2010 01:16:02 +0000
(
01:16
+0000)
Solves issue 1657.
Originally committed as revision 21029 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/alsdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/alsdec.c
b/libavcodec/alsdec.c
index
f9eea8d
..
dd3278d
100644
(file)
--- 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;
}