From 4deaa94639148297cef58d35bc25ebcab45e9111 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Mon, 24 Nov 2008 09:28:55 +0000 Subject: 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 --- libavcodec/lsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/lsp.c') 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; } -- cgit v1.2.3