aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/scaling_video.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-02 10:05:29 +0200
commitef0e5246601253b9f1f9c76820f24b6f31d31f93 (patch)
tree3dc240d48a4d23775d1780d9b1c2e2eee13286b5 /doc/examples/scaling_video.c
parent06bc2002c4d9de593f5b3d4809b2b2077825acdd (diff)
downloadffmpeg-ef0e5246601253b9f1f9c76820f24b6f31d31f93.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 'doc/examples/scaling_video.c')
0 files changed, 0 insertions, 0 deletions