summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2009-04-14 21:03:41 +0000
committerVitor Sessak <vitor1001@gmail.com>2009-04-14 21:03:41 +0000
commitde5922f179b5306a2ff7d31f15e29db679ef6dcc (patch)
tree037c34e97af65c1433f72866fb82f0a91f24dd9e /libavcodec/fraps.c
parent6cecd63005b29a1dc3a5104e6ac85fd112705122 (diff)
For every line, copy 3*width bytes instead of linesize[0] to avoid
problems with padding. Fix issue 959 Originally committed as revision 18512 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 e5f8f49b28..81fa5d5c88 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *avctx,
for(y=0; y<avctx->height; y++)
memcpy(&f->data[0][ (avctx->height-y)*f->linesize[0] ],
&buf[y*avctx->width*3],
- f->linesize[0]);
+ 3*avctx->width);
}
break;