aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_drawgraph.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-20 20:20:42 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-03 13:10:43 +0200
commitc103c203ddd391bfef20dce3c7bda4cbc4e164c9 (patch)
treefbd21cf027d3142613647ed0ac63cccb36563468 /libavfilter/f_drawgraph.c
parent8c9132a88e0582c40a8600ba43c035e5a2fb536b (diff)
downloadffmpeg-c103c203ddd391bfef20dce3c7bda4cbc4e164c9.tar.gz
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 59a9d65e0d790821f88527a82569f56eb2f8a9be) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/f_drawgraph.c')
0 files changed, 0 insertions, 0 deletions