OSDN Git Service

ac3enc: Remove unneeded clipping of shift amount.
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 10 Feb 2011 22:12:16 +0000 (22:12 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Feb 2011 01:54:10 +0000 (02:54 +0100)
commit943dc942659c61b273ba219d5891af6e7510c8b3
treebd7fb04973d28e9978e1e5ecb5834d63b1238409
parent95234e051bbde20bb580fd8e7b1c8dc54773d332
ac3enc: Remove unneeded clipping of shift amount.

s->windowed_samples will always have a range of [-32767,32767] due to the
window function, so the return value from log2_tab() will always be in the
range [0,14].

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 626264b11b5406c0c78c4056cabb63cb650e9bf2)
libavcodec/ac3enc_fixed.c