# HG changeset patch # User reimar # Date 1215331159 0 # Node ID a7d88d135561ca6b6e87549edc84da15cc17cd09 # Parent 46e043b71654c0e00d191879cb1a330e5619dcc4 One more hack for PBOs on ATI cards. Either I am doing something very wrong or they managed to code at about 1 bug per line... diff -r 46e043b71654 -r a7d88d135561 libvo/vo_gl.c --- a/libvo/vo_gl.c Sun Jul 06 07:53:36 2008 +0000 +++ b/libvo/vo_gl.c Sun Jul 06 07:59:19 2008 +0000 @@ -690,6 +690,9 @@ if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE; if (ati_hack) { int s = 1; + // for unexplainable reasons, with width < 512 chroma tends to be messed up + // (after ca. 2/3 the previous line repeats all over) + if (mpi->width < 512) return VO_FALSE; while (s < mpi->width) s *= 2; mpi->width = s; }