[MPlayer-cvslog] r18993 - trunk/libvo/gl_common.c
reimar
subversion at mplayerhq.hu
Mon Jul 10 14:06:41 CEST 2006
Author: reimar
Date: Mon Jul 10 14:06:41 2006
New Revision: 18993
Modified:
trunk/libvo/gl_common.c
Log:
Fix off-by-one error for negative strides (flipped image)
Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c (original)
+++ trunk/libvo/gl_common.c Mon Jul 10 14:06:41 2006
@@ -490,7 +490,7 @@
if (slice <= 0)
slice = h;
if (stride < 0) {
- data += h * stride;
+ data += (h - 1) * stride;
stride = -stride;
}
// this is not always correct, but should work for MPlayer
More information about the MPlayer-cvslog
mailing list