summaryrefslogtreecommitdiff
path: root/libavcodec/cscd.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-01-22 19:10:12 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-01-22 19:10:12 +0000
commitf53a2931cfc62aaf48b549fa6e0ca04c57ec8d4b (patch)
treeb9284f489aa422c93dc377c8bb72106667a5d2ab /libavcodec/cscd.c
parentac44871c7773fb9a6b18d362cec9a4630055fc50 (diff)
faster copy functions for lzo decoder that also need padding
Originally committed as revision 4882 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cscd.c')
-rw-r--r--libavcodec/cscd.c2
1 files changed, 1 insertions, 1 deletions
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;