# HG changeset patch # User banan # Date 1169388890 0 # Node ID e6eb67453d94deaa0b46d501706a0971191e1234 # Parent e10acab2322a14e62bf192ace39d6d09fec52a90 The block_size might be used incorrectly if it is not updated. diff -r e10acab2322a -r e6eb67453d94 flashsv.c --- a/flashsv.c Sun Jan 21 12:32:01 2007 +0000 +++ b/flashsv.c Sun Jan 21 14:14:50 2007 +0000 @@ -135,12 +135,12 @@ if(s->block_size < s->block_width*s->block_height) { if (s->tmpblock != NULL) av_free(s->tmpblock); - s->block_size = s->block_width*s->block_height; - if ((s->tmpblock = av_malloc(3*s->block_size)) == NULL) { + if ((s->tmpblock = av_malloc(3*s->block_width*s->block_height)) == NULL) { av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); return -1; } } + s->block_size = s->block_width*s->block_height; /* init the image size once */ if((avctx->width==0) && (avctx->height==0)){