aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-01-29 17:19:08 +0100
committerReinhard Tartler <siretart@tauware.de>2013-02-07 07:18:56 +0100
commit00bf66785f7d10c37c1677058caec218a7c8fc08 (patch)
tree464c15adff95167e70ca12e5bca0b02fb22b3338 /libavcodec/fraps.c
parent5bee21d724dc47d115faae3f5065a6db74e1594a (diff)
downloadffmpeg-00bf66785f7d10c37c1677058caec218a7c8fc08.tar.gz
fraps: fix off-by one bug for version 1.
CC:libav-stable@libav.org (cherry picked from commit 2cd4068071b9a8908823a3107f97e938211045ce) Conflicts: cmdutils.c libavcodec/fraps.c
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 ba2f32af2a..6ac0c61908 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -235,7 +235,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);
}