Playing the Big Buck Bunny 480p video results in the linked image's results when we switch to fullscreen OpenGL video. We're just off by a couple of pixels here because the image isn't a multiple of four.
Created attachment 436536 [details] [diff] [review] Use GL_UNPACK_ALIGNMENT instead of ROW_LENGTH We now look for the optimal alignment we've got. And then use GL_UNPACK_ALIGNMENT, in theory this should also work on OGL ES unlike the ROW_LENGTH approach.
Comment on attachment 436536 [details] [diff] [review] Use GL_UNPACK_ALIGNMENT instead of ROW_LENGTH Add comments saying what textures' alignments are being set at each PixelStore call, and one saying "restore to default" at the bottom of the function?