Files
FFmpeg/libavcodec
Andreas Rheinhardt c103c203dd avcodec/adxenc: Avoid undefined left shift of negative numbers
Replace "((a << shift) + b) >> shift" by "a + (b >> shift)". This avoids
a left shift which also happens to trigger undefined behaviour in case "a"
is negative. This affected the FATE-tests acodec-adpcm-adx and
acodec-adpcm-adx-trellis; it also fixes ticket #8008.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 59a9d65e0d)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-03 13:10:43 +02:00
..
2017-03-31 12:28:58 +02:00
2017-02-15 12:46:01 +01:00
2017-06-02 01:14:38 +02:00
2017-07-19 15:26:37 +02:00
2017-05-14 00:21:49 +02:00
2017-05-14 00:21:49 +02:00
2018-07-16 19:06:26 +02:00
2017-05-14 17:56:21 +02:00
2017-12-30 21:11:31 +01:00
2017-03-20 09:23:15 +01:00
2018-04-13 00:35:15 +02:00
2016-11-14 00:33:12 +01:00
2017-05-14 00:21:49 +02:00
2018-07-16 19:06:26 +02:00
2017-05-23 15:50:46 +02:00
2017-02-21 00:40:20 +01:00
2017-03-28 18:04:27 -04:00
2017-03-21 12:38:20 +01:00
2017-12-30 19:36:08 -03:00
2016-11-27 14:34:57 +01:00
2016-11-15 22:01:08 +01:00
2017-02-03 20:16:30 +01:00
2017-02-03 20:01:07 +01:00
2017-01-11 16:02:10 +01:00
2017-01-11 16:02:10 +01:00
2017-02-21 00:40:20 +01:00
2017-02-14 06:15:36 +00:00
2017-02-24 19:14:55 +00:00
2017-02-14 06:15:36 +00:00
2017-06-06 03:44:35 +02:00
2017-01-09 18:43:19 +01:00
2017-02-10 17:04:56 +01:00
2016-11-29 11:23:20 +01:00
2017-01-16 10:24:01 +01:00
2018-04-13 00:35:15 +02:00
2017-02-21 00:40:20 +01:00
2017-04-02 19:49:45 +02:00
2017-02-02 01:12:07 +01:00
2017-06-02 01:14:38 +02:00
2017-01-20 13:58:41 +01:00
2017-07-26 00:14:20 +02:00