]> git.sesse.net Git - ffmpeg/commit
avcodec/j2kenc: Fix undefined shifts of negative numbers
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 21 Jan 2020 00:23:47 +0000 (01:23 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Jan 2020 14:56:39 +0000 (15:56 +0100)
commit39b60359dbf7936eb1ef6a05b76ea7d821d115f5
tree485b016929c4153327210c216f162dfe1bde3644
parentc07565627b5fe5f27f0fb13a2f3eed03cebb85ec
avcodec/j2kenc: Fix undefined shifts of negative numbers

Also add parentheses to some lines to make the operator precedence
clearer.

This affected the FATE-tests vsynth*-jpeg2000 and vsynth*-jpeg2000-97
(where * ranges over { 1, 2, 3, _lena }) as well as ticket #7983.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/j2kenc.c