changeset 17027:04d66a417413

Use slice-height 16 as default for yuv colorspaces (only relevant if decoder does not support slice rendering).
author reimar
date Tue, 22 Nov 2005 16:18:34 +0000
parents 3c4b93bc0db3
children d49279893902
files libvo/vo_gl.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Nov 22 05:32:28 2005 +0000
+++ b/libvo/vo_gl.c	Tue Nov 22 16:18:34 2005 +0000
@@ -711,7 +711,7 @@
     use_rectangle = 0;
     use_glFinish = 0;
     swap_interval = 1;
-    slice_height = 4;
+    slice_height = -1;
     custom_prog = NULL;
     custom_tex = NULL;
     custom_tlin = 1;
@@ -758,6 +758,8 @@
       gl_target = GL_TEXTURE_RECTANGLE;
     else
       gl_target = GL_TEXTURE_2D;
+    if (slice_height == -1)
+      slice_height = use_yuv ? 16 : 4;
     if (many_fmts)
       mp_msg (MSGT_VO, MSGL_INFO, "[gl] using extended formats. "
                "Use -vo gl:nomanyfmts if playback fails.\n");