mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
goom: fix undefined behaviour of left-shift
Don't left-shift into the sign bit, the result is undefined and potentially an overflow could flip the sign.
This commit is contained in:
parent
5dc2e6bef1
commit
3943c3ec08
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ generatePrecalCoef (int precalCoef[16][16])
|
|||
if (!(coefh || coefv)) {
|
||||
i = 255;
|
||||
} else {
|
||||
int i1, i2, i3, i4;
|
||||
uint i1, i2, i3, i4;
|
||||
|
||||
i1 = diffcoeffh * diffcoeffv;
|
||||
i2 = coefh * diffcoeffv;
|
||||
|
|
Loading…
Reference in a new issue