g723_1: clip argument for 15-bit version of normalize_bits()
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 7 Aug 2012 17:32:20 +0000 (19:32 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 8 Aug 2012 11:24:19 +0000 (13:24 +0200)
commite78e6c37efc98189c4c3d89acd3265d7a7ba6d05
treec2fc21b7182765edbbdef4b30f219ddd40bfa428
parentf86b2f36612debf10a07300acadba08f7b092bcb
g723_1: clip argument for 15-bit version of normalize_bits()

It expects maximum value to be 32767 but calculations in scale_vector()
which uses this function can give it ABS(-32768) which leads to wrong
result and thus clipping is needed.
libavcodec/g723_1.c