[Bug 795235] xvimagesink fails: unexpected XShm image size
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Apr 26 18:28:42 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=795235
--- Comment #10 from Nicolas Dufresne (ndufresne) <nicolas at ndufresne.ca> ---
Ok, I thought, hey, let's the driver choose, but I notice a Gst ends up reading
too far. That's because the Intel driver math is wrong for odd width:
Bug is quite evident:
https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/uxa/intel_video.c#n814
"tmp = ((*w >> 1) + 3) & ~3;"
This will do (905 >> 1) ->452, which is a multiple of 4. But if you reverse
this,
you'll get 452 * 2 == 904, so there is no UV value for the 905th Y of each
lines.
The correct math should have been:
"tmp = (((*w + 1) >> 1) + 3) & ~3;"
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list