Closed GithubPrankster closed 1 month ago
At line 3178:
else if (motion < ((-fscale) << 4)) {
And at line 3366:
level <<= 1;
When using -fsanitize=undefined.
-fsanitize=undefined
Changing these to else if (motion < (-(fscale << 4))) { and level = (int)((unsigned int)level << 1); seems to work and doesn't present any issues as far as I can tell.
else if (motion < (-(fscale << 4))) {
level = (int)((unsigned int)level << 1);
Fixed with https://github.com/phoboslab/pl_mpeg/pull/43
At line 3178:
And at line 3366:
When using
-fsanitize=undefined
.Changing these to
else if (motion < (-(fscale << 4))) {
andlevel = (int)((unsigned int)level << 1);
seems to work and doesn't present any issues as far as I can tell.