mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
alacenc: fix incorrect buffer use
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>
This commit is contained in:
parent
d87fe2687f
commit
a084493535
@ -444,7 +444,7 @@ static void write_element(AlacEncodeContext *s,
|
|||||||
// TODO: determine when this will actually help. for now it's not used.
|
// TODO: determine when this will actually help. for now it's not used.
|
||||||
if (prediction_type == 15) {
|
if (prediction_type == 15) {
|
||||||
// 2nd pass 1st order filter
|
// 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--)
|
for (j = s->frame_size - 1; j > 0; j--)
|
||||||
residual[j] -= residual[j - 1];
|
residual[j] -= residual[j - 1];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user