mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
alacenc: Fix missing sign_extend()
Possibly fixes Ticket2497 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d3c4ea8b35
commit
8aea2f05dc
@ -274,7 +274,7 @@ static void alac_linear_predictor(AlacEncodeContext *s, int ch)
|
|||||||
// generate warm-up samples
|
// generate warm-up samples
|
||||||
residual[0] = samples[0];
|
residual[0] = samples[0];
|
||||||
for (i = 1; i <= lpc.lpc_order; i++)
|
for (i = 1; i <= lpc.lpc_order; i++)
|
||||||
residual[i] = samples[i] - samples[i-1];
|
residual[i] = sign_extend(samples[i] - samples[i-1], s->write_sample_size);
|
||||||
|
|
||||||
// perform lpc on remaining samples
|
// perform lpc on remaining samples
|
||||||
for (i = lpc.lpc_order + 1; i < s->frame_size; i++) {
|
for (i = lpc.lpc_order + 1; i < s->frame_size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user