[vlc-commits] opengl: vaapi: specify texture scale for NV12

Thomas Guillem git at videolan.org
Tue Nov 28 16:12:43 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Nov 28 16:05:54 2017 +0100| [9d1e03ad506a7ef4ceacd16c0bc67ee2dc357186] | committer: Thomas Guillem

opengl: vaapi: specify texture scale for NV12

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

 modules/video_output/opengl/converter_vaapi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/converter_vaapi.c b/modules/video_output/opengl/converter_vaapi.c
index a14422fb1a..10ee7b170a 100644
--- a/modules/video_output/opengl/converter_vaapi.c
+++ b/modules/video_output/opengl/converter_vaapi.c
@@ -404,8 +404,8 @@ tc_vaegl_init(opengl_tex_converter_t *tc, VADisplay *vadpy,
     if (tc->fshader == 0)
         goto error;
 
-    /* Fix the UV plane texture scale factor for GR32 */
-    if (vlc_sw_chroma == VLC_CODEC_P010)
+    /* Fix the UV plane texture scale factor for GR */
+    if (vlc_sw_chroma == VLC_CODEC_NV12 || vlc_sw_chroma == VLC_CODEC_P010)
         tc->texs[1].h = (vlc_rational_t) { 1, 2 };
 
     return VLC_SUCCESS;



More information about the vlc-commits mailing list