[vlc-commits] [Git][videolan/vlc][master] opengl: interop: fix divbyzero YUYV
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Dec 13 09:44:03 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
2d9100ed by Francois Cartegnie at 2022-12-13T09:30:41+00:00
opengl: interop: fix divbyzero YUYV
regression by b9edc720b80151fe5b511df283afb432b8576582
- - - - -
1 changed file:
- modules/video_output/opengl/interop_sw.c
Changes:
=====================================
modules/video_output/opengl/interop_sw.c
=====================================
@@ -213,7 +213,7 @@ tc_pbo_update(const struct vlc_gl_interop *interop, uint32_t textures[],
/* For YUV 4:2:2 formats, a single plane is uploaded into 2 textures */
priv->gl.ActiveTexture(GL_TEXTURE1);
priv->gl.BindTexture(interop->tex_target, textures[1]);
- priv->gl.PixelStorei(GL_UNPACK_ROW_LENGTH, pic->p[1].i_pitch / pic->p[1].i_pixel_pitch);
+ priv->gl.PixelStorei(GL_UNPACK_ROW_LENGTH, (pic->p[0].i_pitch / pic->p[0].i_pixel_pitch) >> 1); /* yuv[Y] */
priv->gl.TexSubImage2D(interop->tex_target, 0, 0, 0, tex_width[1], tex_height[1],
interop->texs[1].format, interop->texs[1].type, NULL);
priv->gl.PixelStorei(GL_UNPACK_ROW_LENGTH, 0);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d9100ed9c1780d5b1eada4d64712265f36a5139
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d9100ed9c1780d5b1eada4d64712265f36a5139
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list