Skip to content
Snippets Groups Projects
Commit b82adb05 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

wall: fix non-first abscissa of non-8-bit samples

The X and Y values are pixel coordinates in the potentially subsampled
plane resolution. This must be converted to an octet offset as the type
of the pixel plane pointer is pointer-to-uint8_t.

So the X value must be multiplied by the sample size. The current code
was instead rounding the value down to a multiple of the sample size.

Bug reported by Philipp Marek on IRC.

(cherry picked from commit 87733c50)
parent ac996441
No related branches found
No related tags found
Loading
Pipeline #229069 failed with stages
in 20 minutes and 19 seconds
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