Fix compilation error.
authorVladimir Voroshilov <voroshil@gmail.com>
Sun, 11 May 2008 05:28:29 +0000 (05:28 +0000)
committerVladimir Voroshilov <voroshil@gmail.com>
Sun, 11 May 2008 05:28:29 +0000 (05:28 +0000)
It was introduced after changing input parameter and
overlooked during review process.

Originally committed as revision 13112 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/lsp.c

index a4d851b..e1b1d41 100644 (file)
@@ -96,7 +96,7 @@ void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order)
 
         ff1 += 1 << 10; // for rounding
         lp[i]    = (ff1 + ff2) >> 11; // divide by 2 and (3.22) -> (3.12)
-        lp[lp_order + 1 - i] = (ff1 - ff2) >> 11; // divide by 2 and (3.22) -> (3.12)
+        lp[(lp_half_order << 1) + 1 - i] = (ff1 - ff2) >> 11; // divide by 2 and (3.22) -> (3.12)
     }
 }