[vlc-commits] opengl: converter: generic: don't try opaque

Thomas Guillem git at videolan.org
Fri Feb 3 15:05:54 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  3 14:37:43 2017 +0100| [dec6ca5d028b8f7b41374a024a118d1e37b1b810] | committer: Thomas Guillem

opengl: converter: generic: don't try opaque

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dec6ca5d028b8f7b41374a024a118d1e37b1b810
---

 modules/video_output/opengl/converters.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/opengl/converters.c b/modules/video_output/opengl/converters.c
index cb4a3e4..fa5af72 100644
--- a/modules/video_output/opengl/converters.c
+++ b/modules/video_output/opengl/converters.c
@@ -851,6 +851,11 @@ opengl_tex_converter_generic_init(const video_format_t *fmt,
                                   opengl_tex_converter_t *tc)
 {
     GLuint fragment_shader = 0;
+    const vlc_chroma_description_t *desc =
+        vlc_fourcc_GetChromaDescription(fmt->i_chroma);
+    if (!desc || desc->plane_count == 0)
+        return 0;
+
     if (vlc_fourcc_IsYUV(fmt->i_chroma))
     {
         GLint max_texture_units = 0;



More information about the vlc-commits mailing list