summaryrefslogtreecommitdiff
path: root/libavcodec/lsp.c
diff options
context:
space:
mode:
authorVladimir Voroshilov <voroshil@gmail.com>2008-05-11 05:28:29 +0000
committerVladimir Voroshilov <voroshil@gmail.com>2008-05-11 05:28:29 +0000
commit7c96587c17bd35b70b750f0356996528a3cebe62 (patch)
tree10ae470bf91bcc6dd7e55e50e25bae613b2546e3 /libavcodec/lsp.c
parent59d598b923a3321989c37583d237e72a963c83d3 (diff)
downloadffmpeg-7c96587c17bd35b70b750f0356996528a3cebe62.tar.gz
Fix compilation error.
It was introduced after changing input parameter and overlooked during review process. Originally committed as revision 13112 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 a4d851be76..e1b1d4139d 100644
--- a/libavcodec/lsp.c
+++ b/libavcodec/lsp.c
@@ -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)
}
}