vlc | branch: master | Thomas Guillem <[email protected]> | 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to