changeset 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 8aa2e86549cd
children ef3a7b711cc0
files fraps.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;