diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-06 13:45:32 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-07 11:40:46 -0800 |
commit | 37cc8600d0313838cab5b886b9d373e5819aa24f (patch) | |
tree | ed5f4431b4500053fc1b443fbcbf8bebe29e7ea3 /libavcodec/cook.c | |
parent | 84a020efc3999adec0c7aaca6039b2dd3a78579f (diff) | |
download | ffmpeg-37cc8600d0313838cab5b886b9d373e5819aa24f.tar.gz |
cook: extend channel uncoupling tables so the full bit range is covered.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index bc262f19b0..65e16e4077 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -832,8 +832,8 @@ static void joint_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer1, cpl_tmp = cplband[i]; idx -= decouple_tab[cpl_tmp]; cplscale = q->cplscales[p->js_vlc_bits - 2]; // choose decoupler table - f1 = cplscale[decouple_tab[cpl_tmp]]; - f2 = cplscale[idx - 1]; + f1 = cplscale[decouple_tab[cpl_tmp] + 1]; + f2 = cplscale[idx]; q->decouple(q, p, i, f1, f2, decode_buffer, mlt_buffer1, mlt_buffer2); idx = (1 << p->js_vlc_bits) - 1; } |