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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to