swscale: fix crash with dithering due incorrect offset calculation.
authorAnton Mitrofanov <BugMaster@narod.ru>
Sun, 10 Jul 2011 16:07:43 +0000 (20:07 +0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 10 Jul 2011 21:52:21 +0000 (14:52 -0700)
commit142e76f1055de5dde44696e71a5f63f2cb11dedf
treeb9c21ee1b84ada92f3c8b4a92c9e68bdabd5d69b
parentfdb94444beb9c32beb8cfc70656f5115d9eec58b
swscale: fix crash with dithering due incorrect offset calculation.

ptrdiff_t can be 4 bytes, which leads to the next element being 4-byte
aligned and thus at a different offset than intended. Forcing 8-byte
alignment forces equal offset of dither16/32 on x86-32 and x86-64.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libswscale/swscale_internal.h