diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-03-22 17:17:04 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-03-22 17:21:34 +0000 |
commit | 38d7cc22f7782de2e7aca8eda2c2c2996f7f5700 (patch) | |
tree | 351075aacc7990b3f55d45edf619c8576a6cd2da /libavcodec/mdct15.c | |
parent | cf1c8a379e9fa1a7715b44e629365cc02a42e620 (diff) | |
download | ffmpeg-38d7cc22f7782de2e7aca8eda2c2c2996f7f5700.tar.gz |
mdct15: fix left shift of a negative value
Should fix Chromium issue 704064.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/mdct15.c')
-rw-r--r-- | libavcodec/mdct15.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mdct15.c b/libavcodec/mdct15.c index a6bea2d469..e0382091ba 100644 --- a/libavcodec/mdct15.c +++ b/libavcodec/mdct15.c @@ -88,7 +88,7 @@ static inline int init_pfa_reindex_tabs(MDCT15Context *s) for (j = 0; j < 15; j++) { const int q_pre = ((l_ptwo * j)/15 + i) >> b_ptwo; const int q_post = (((j*inv_1)/15) + (i*inv_2)) >> b_ptwo; - const int k_pre = 15*i + ((j - q_pre*15) << b_ptwo); + const int k_pre = 15*i + (j - q_pre*15)*(1 << b_ptwo); const int k_post = i*inv_2*15 + j*inv_1 - 15*q_post*l_ptwo; s->pfa_prereindex[i*15 + j] = k_pre; s->pfa_postreindex[k_post] = l_ptwo*j + i; |