Mercurial > mplayer.hg
changeset 18988:a61ef37d3c71
Fix off-by-one error for negative strides (flipped image)
author | reimar |
---|---|
date | Mon, 10 Jul 2006 12:06:41 +0000 |
parents | 1f08622dd297 |
children | f0e9de2b3780 |
files | libvo/gl_common.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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