comparison flicvideo.c @ 4232:cb5e46ee0495 libavcodec

10l memory corruption bug found by Steven Johnson
author alex
date Thu, 23 Nov 2006 22:57:20 +0000
parents 214d3d9b69dc
children 5e05fadc93d1
comparison
equal deleted inserted replaced
4231:c769e4b0c75e 4232:cb5e46ee0495
534 break; 534 break;
535 535
536 case FLI_BLACK: 536 case FLI_BLACK:
537 /* set the whole frame to 0x0000 which is balck in both 15Bpp and 16Bpp modes. */ 537 /* set the whole frame to 0x0000 which is balck in both 15Bpp and 16Bpp modes. */
538 memset(pixels, 0x0000, 538 memset(pixels, 0x0000,
539 s->frame.linesize[0] * s->avctx->height * 2); 539 s->frame.linesize[0] * s->avctx->height);
540 break; 540 break;
541 541
542 case FLI_BRUN: 542 case FLI_BRUN:
543 y_ptr = 0; 543 y_ptr = 0;
544 for (lines = 0; lines < s->avctx->height; lines++) { 544 for (lines = 0; lines < s->avctx->height; lines++) {