diff fraps.c @ 9438:7f84bce8dd26 libavcodec

For every line, copy 3*width bytes instead of linesize[0] to avoid problems with padding. Fix issue 959
author vitor
date Tue, 14 Apr 2009 21:03:41 +0000
parents 0dce4fe6e6f3
children 4cab394c16ea
line wrap: on
line diff
--- 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; 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;