diff cscd.c @ 3060:a2f611d6c34d libavcodec

faster copy functions for lzo decoder that also need padding
author reimar
date Sun, 22 Jan 2006 19:10:12 +0000
parents 0b546eab515d
children c8c591fe26f8
line wrap: on
line diff
--- a/cscd.c	Sat Jan 21 18:19:47 2006 +0000
+++ b/cscd.c	Sun Jan 22 19:10:12 2006 +0000
@@ -232,7 +232,7 @@
     c->linelen = avctx->width * avctx->bits_per_sample / 8;
     c->height = avctx->height;
     c->decomp_size = c->height * c->linelen;
-    c->decomp_buf = av_malloc(c->decomp_size);
+    c->decomp_buf = av_malloc(c->decomp_size + LZO_OUTPUT_PADDING);
     if (!c->decomp_buf) {
         av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
         return 1;