diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-01-22 19:10:12 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2006-01-22 19:10:12 +0000 |
commit | f53a2931cfc62aaf48b549fa6e0ca04c57ec8d4b (patch) | |
tree | b9284f489aa422c93dc377c8bb72106667a5d2ab /libavcodec/cscd.c | |
parent | ac44871c7773fb9a6b18d362cec9a4630055fc50 (diff) | |
download | ffmpeg-f53a2931cfc62aaf48b549fa6e0ca04c57ec8d4b.tar.gz |
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.c | 2 |
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; |