On Fri, Jan 1, 2016 at 6:39 PM, Stefan Dösinger stefandoesinger@gmail.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Am 2015-12-27 um 10:23 schrieb Aaryaman Vasishta:
if (info_header.biWidth % 4 != 0)
expected = (info_header.biWidth & ~0x03) + 4;
else
expected = info_header.biWidth;
This is more complicated than it needs to be:
expected = (info_header.biWidth + 3) & ~3
should work as well.
Much better solution :)
I've sent try 6 with the changes.
Cheers, Aaryaman