avcodec/takdec: add code that got somehow lost in process of REing
authorPaul B Mahol <onemda@gmail.com>
Wed, 20 Apr 2016 20:45:05 +0000 (22:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Apr 2016 12:23:41 +0000 (14:23 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 38797a8033d061ade58b30b8ac86da222fe42a84)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/takdec.c

index 28f884a..fbec0e0 100644 (file)
@@ -224,6 +224,7 @@ static void decode_lpc(int32_t *coeffs, int mode, int length)
             int a3  = coeffs[2];
             int a4  = a3 + a1;
             int a5  = a4 + a2;
+            coeffs[2] = a5;
             coeffs += 3;
             for (i = 0; i < length - 3; i++) {
                 a3     += *coeffs;