summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-01-29 17:19:08 +0100
committerAnton Khirnov <anton@khirnov.net>2013-02-06 10:21:52 +0100
commit2cd4068071b9a8908823a3107f97e938211045ce (patch)
tree80926438d7e983628e2c19adc75abcbb0d09bca5 /libavcodec/fraps.c
parentda7baaaae79b4d7d715d35ea6bcfbdd149edc177 (diff)
fraps: fix off-by one bug for version 1.
CC:libav-stable@libav.org
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);
}