[vlc-commits] [Git][videolan/vlc][master] 2 commits: glinterop_sw: fix VUYA tex_count set to 2 instead of 1

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 12 16:26:54 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8b33cb67 by Abderhman Gamal at 2026-09-12T16:17:37+00:00
glinterop_sw: fix VUYA tex_count set to 2 instead of 1

interop_yuv_base_init() was setting tex_count to 2 while only initializing texs[0],
leaving texs[1] with zero denominators and causing a SIGFPE in vlc_gl_importer_New().

- - - - -
60970950 by Abderhman Gamal at 2026-09-12T16:17:37+00:00
opengl: sampler: add missing VUYA swizzle in opengl_init_swizzle()

opengl_init_swizzle() was missing a case for VLC_CODEC_VUYA, hitting the assert(!'missing chroma') fallback and aborting.

- - - - -


2 changed files:

- modules/video_output/opengl/interop_sw.c
- modules/video_output/opengl/sampler.c


Changes:

=====================================
modules/video_output/opengl/interop_sw.c
=====================================
@@ -543,7 +543,7 @@ interop_yuv_base_init(struct vlc_gl_interop *interop,
     {
         if (desc->fcc == VLC_CODEC_VUYA)
         {
-            interop->tex_count = 2;
+            interop->tex_count = 1;
             interop->texs[0] = (struct vlc_gl_tex_cfg) {
                 { 1, 1 }, { 1, 1 },
                 GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE


=====================================
modules/video_output/opengl/sampler.c
=====================================
@@ -565,6 +565,7 @@ opengl_init_swizzle(struct vlc_gl_sampler *sampler,
                 assert(sampler->tex_count == 1);
                 break;
             case VLC_CODEC_VUYX:
+            case VLC_CODEC_VUYA:
                 swizzle_per_tex[0] = "bgr";
                 break;
             case VLC_CODEC_Y410:



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7b0b29d945f3e5852d5bad74f009af8bcfa7e32d...6097095004c80b1560804fe2ad3bcdefc4e75ef3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7b0b29d945f3e5852d5bad74f009af8bcfa7e32d...6097095004c80b1560804fe2ad3bcdefc4e75ef3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list