avcodec/ra144enc: Fix invalid left shift of negative number
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 22 Jan 2020 14:52:10 +0000 (15:52 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 20 May 2020 02:08:57 +0000 (04:08 +0200)
commit3d9fd3ed698fba182173afb17043598457b7709f
tree1feed4487d69e3fba2686e439ea6442aad239809
parentdfe0d907c2258bb9c81b8c65e42cec2b3022d5e8
avcodec/ra144enc: Fix invalid left shift of negative number

by replacing it with a multiplication. Said multiplication can't
overflow an int32_t because lpc_coefs is limited to 16 bit precision.

Fixes the FACE-test acodec-ra144 as well as part of #8217.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e3fb9af6f1353f30855eaa1cbd5befaf06e303b8)
libavcodec/ra144enc.c