From f53a2931cfc62aaf48b549fa6e0ca04c57ec8d4b Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 22 Jan 2006 19:10:12 +0000 Subject: faster copy functions for lzo decoder that also need padding Originally committed as revision 4882 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cscd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/cscd.c') diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index cf51a1eb92..0d6e045260 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -232,7 +232,7 @@ static int decode_init(AVCodecContext *avctx) { 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; -- cgit v1.2.3