From 2cd4068071b9a8908823a3107f97e938211045ce Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 29 Jan 2013 17:19:08 +0100 Subject: fraps: fix off-by one bug for version 1. CC:libav-stable@libav.org --- libavcodec/fraps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/fraps.c') diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 5473bd8b76..237cb743f9 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -239,7 +239,7 @@ static int decode_frame(AVCodecContext *avctx, if (f->pict_type == AV_PICTURE_TYPE_I) { for (y = 0; yheight; y++) - memcpy(&f->data[0][(avctx->height - y) * f->linesize[0]], + memcpy(&f->data[0][(avctx->height - y - 1) * f->linesize[0]], &buf[y * avctx->width * 3], 3 * avctx->width); } -- cgit v1.2.3