summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c2
1 files changed, 1 insertions, 1 deletions
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; y<avctx->height; 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);
}