aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/webm_chunk.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-05-20 04:05:39 +0200
commitdfe0d907c2258bb9c81b8c65e42cec2b3022d5e8 (patch)
tree8f9e31a45247d6af0afedcc7fa132b8307244ed9 /libavformat/webm_chunk.c
parent4f17205a510d2d54054f12541c4a209dc76cc197 (diff)
downloadffmpeg-dfe0d907c2258bb9c81b8c65e42cec2b3022d5e8.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)
Diffstat (limited to 'libavformat/webm_chunk.c')
0 files changed, 0 insertions, 0 deletions