# HG changeset patch # User vitor # Date 1239743021 0 # Node ID 7f84bce8dd26bea8c0bbb9d9cc196172bbbe317e # Parent 8aa2e86549cde1411791cfef847b47abc86c29e0 For every line, copy 3*width bytes instead of linesize[0] to avoid problems with padding. Fix issue 959 diff -r 8aa2e86549cd -r 7f84bce8dd26 fraps.c --- a/fraps.c Tue Apr 14 19:26:33 2009 +0000 +++ b/fraps.c Tue Apr 14 21:03:41 2009 +0000 @@ -240,7 +240,7 @@ 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;