diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-13 00:01:13 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-06-13 00:21:41 +0200 |
commit | 23d835f6113b92f7a3ae9ab8eb091a554ef47d51 (patch) | |
tree | bec31f010a7a38b4e33f98dfc60f861bfd1f1d52 /libavcodec/alacenc.c | |
parent | d04dc7b5a78b825aa3241ca331780d82f546a985 (diff) | |
download | ffmpeg-23d835f6113b92f7a3ae9ab8eb091a554ef47d51.tar.gz |
alacenc: Fix missing sign_extend()
Fixes ticket #2497
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8aea2f05dc56f7e7d60767dd27ba8e846a05e8ae)
Conflicts:
libavcodec/alacenc.c
Diffstat (limited to 'libavcodec/alacenc.c')
-rw-r--r-- | libavcodec/alacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c index bb618e16f2..235bff6637 100644 --- a/libavcodec/alacenc.c +++ b/libavcodec/alacenc.c @@ -257,7 +257,7 @@ static void alac_linear_predictor(AlacEncodeContext *s, int ch) // generate warm-up samples residual[0] = samples[0]; 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 for(i = lpc.lpc_order + 1; i < s->avctx->frame_size; i++) { |