gl/colorconvert: choose the right alpha component for AYUV -> RGBA
authorMatthew Waters <ystreet00@gmail.com>
Sun, 11 May 2014 04:02:34 +0000 (14:02 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:40 +0000 (19:31 +0000)
gst-libs/gst/gl/gstglcolorconvert.c

index 20230d21397e559b47eb241c97a117655e9ceb2a..f147c89135d6ceefbb0b33a54587785af2477975 100644 (file)
@@ -181,7 +181,7 @@ static const char frag_AYUV_to_RGB[] =
     "  r = dot(texel.gba, coeff1);\n"
     "  g = dot(texel.gba, coeff2);\n"
     "  b = dot(texel.gba, coeff3);\n"
-    "  a = texel.a;\n"
+    "  a = texel.r;\n"
     "  gl_FragColor=vec4(%c,%c,%c,%c);\n"
     "}";