[FFmpeg-devel] [PATCH 4/4] avcodec/ra144enc: Fix invalid left shift of negative number

Michael Niedermayer michael at niedermayer.cc
Thu Jan 23 13:21:48 EET 2020


On Wed, Jan 22, 2020 at 03:52:10PM +0100, Andreas Rheinhardt wrote:
> 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 at gmail.com>
> ---
> I am unable to reproduce the division by zero mentioned in ticket #8217;
> probably just an error on the reporter's part.
> 
>  libavcodec/ra144enc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200123/f2e118b1/attachment.sig>


More information about the ffmpeg-devel mailing list