utils.c: Make image_endian_swap() deal with negative strides
authorSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 26 Sep 2013 22:56:07 +0000 (18:56 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 27 Sep 2013 21:11:08 +0000 (17:11 -0400)
commitfa0559eb710ef6252dea5a70ade28a2c167a7a85
tree3f05213c9c349f04e167eb7a40fe23e09b414b82
parentff682089ce1128079c06827a80647fa3284ca2a2
utils.c: Make image_endian_swap() deal with negative strides

Use a temporary variable s containing the absolute value of the stride
as the upper bound in the inner loops.

V2: Do this for the bpp == 16 case as well
test/utils.c