From de5922f179b5306a2ff7d31f15e29db679ef6dcc Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Tue, 14 Apr 2009 21:03:41 +0000 Subject: 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 --- 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 e5f8f49b28..81fa5d5c88 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *avctx, for(y=0; yheight; y++) memcpy(&f->data[0][ (avctx->height-y)*f->linesize[0] ], &buf[y*avctx->width*3], - f->linesize[0]); + 3*avctx->width); } break; -- cgit v1.2.3