OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87fe26
)
alacenc: fix incorrect buffer use
author
Christophe Gisquet
<christophe.gisquet@gmail.com>
Sat, 20 Sep 2014 18:23:08 +0000
(18:23 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Sep 2014 18:45:57 +0000
(20:45 +0200)
The issue lies in actually dead code ("for now it's not used").
Noticed-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
b9ad899
..
fd5bf66
100644
(file)
--- a/
libavcodec/alacenc.c
+++ b/
libavcodec/alacenc.c
@@
-444,7
+444,7
@@
static void write_element(AlacEncodeContext *s,
// TODO: determine when this will actually help. for now it's not used.
if (prediction_type == 15) {
// 2nd pass 1st order filter
- int32_t *residual = s->predictor_buf[
channels
];
+ int32_t *residual = s->predictor_buf[
i
];
for (j = s->frame_size - 1; j > 0; j--)
residual[j] -= residual[j - 1];
}