changeset 4232:cb5e46ee0495 libavcodec

10l memory corruption bug found by Steven Johnson
author alex
date Thu, 23 Nov 2006 22:57:20 +0000
parents c769e4b0c75e
children 5e05fadc93d1
files flicvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flicvideo.c	Thu Nov 23 22:22:03 2006 +0000
+++ b/flicvideo.c	Thu Nov 23 22:57:20 2006 +0000
@@ -536,7 +536,7 @@
         case FLI_BLACK:
             /* set the whole frame to 0x0000 which is balck in both 15Bpp and 16Bpp modes. */
             memset(pixels, 0x0000,
-                   s->frame.linesize[0] * s->avctx->height * 2);
+                   s->frame.linesize[0] * s->avctx->height);
             break;
 
         case FLI_BRUN: