summaryrefslogtreecommitdiff
path: root/libavcodec/lsp.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-11-24 09:28:55 +0000
committerMåns Rullgård <mans@mansr.com>2008-11-24 09:28:55 +0000
commit4deaa94639148297cef58d35bc25ebcab45e9111 (patch)
tree03a79a4895415234e3ec75717864a5411eefda01 /libavcodec/lsp.c
parent8f5aaa6d2fde23d372c80844514103c93088b2f2 (diff)
Add shift argument to MULL() macro
This replaces use of FRAC_BITS in the MULL() definition with a third argument specifying the shift amount. All uses of this macro are updated to pass FRAC_BITS as third argument. Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lsp.c')
-rw-r--r--libavcodec/lsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c
index d2785f7183..f57f621350 100644
--- a/libavcodec/lsp.c
+++ b/libavcodec/lsp.c
@@ -72,7 +72,7 @@ static void lsp2poly(int* f, const int16_t* lsp, int lp_half_order)
{
f[i] = f[i-2];
for(j=i; j>1; j--)
- f[j] -= MULL(f[j-1], lsp[2*i-2]) - f[j-2];
+ f[j] -= MULL(f[j-1], lsp[2*i-2], FRAC_BITS) - f[j-2];
f[1] -= lsp[2*i-2] << 8;
}