[FFmpeg-cvslog] r18512 - trunk/libavcodec/fraps.c

vitor subversion
Tue Apr 14 23:03:42 CEST 2009


Author: vitor
Date: Tue Apr 14 23:03:41 2009
New Revision: 18512

Log:
For every line, copy 3*width bytes instead of linesize[0] to avoid 
problems with padding.

Fix issue 959

Modified:
   trunk/libavcodec/fraps.c

Modified: trunk/libavcodec/fraps.c
==============================================================================
--- trunk/libavcodec/fraps.c	Tue Apr 14 21:26:33 2009	(r18511)
+++ trunk/libavcodec/fraps.c	Tue Apr 14 23:03:41 2009	(r18512)
@@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *
             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;
 



More information about the ffmpeg-cvslog mailing list