Skip to content
Snippets Groups Projects
Commit 142e76f1 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Ronald S. Bultje
Browse files

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: default avatarRonald S. Bultje <rsbultje@gmail.com>
parent fdb94444
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment