aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-threadmessage-test.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 15:49:18 +0200
commit9d7bc32e1c9533f15fa23885ae1a04a5efe5d8d5 (patch)
treea6c012061227afa49603024b982d0c30768d7c56 /tests/api/api-threadmessage-test.c
parent90f17d1cc1d18a70bdaa172ec091c5d22af358ab (diff)
downloadffmpeg-9d7bc32e1c9533f15fa23885ae1a04a5efe5d8d5.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 'tests/api/api-threadmessage-test.c')
0 files changed, 0 insertions, 0 deletions