# HG changeset patch # User reimar # Date 1152533201 0 # Node ID a61ef37d3c71a3b7a873ac15fbfa369bb17e74db # Parent 1f08622dd29709bcb570aa03e6d2b5c88f40af2f Fix off-by-one error for negative strides (flipped image) diff -r 1f08622dd297 -r a61ef37d3c71 libvo/gl_common.c --- a/libvo/gl_common.c Mon Jul 10 10:22:29 2006 +0000 +++ b/libvo/gl_common.c Mon Jul 10 12:06:41 2006 +0000 @@ -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