From 0b178e56290d6e3cd8684c261e387bb8eafa38d3 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Mon, 2 Feb 2009 20:16:00 +0000 Subject: Add av_ prefix to LZO stuff and thus make it officially part of the public API. Keep lzo1x_decode until the next major version bump for binary compatibility. Originally committed as revision 16946 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cscd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/cscd.c') diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index 55bf2ec128..9379b2c7f3 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -158,7 +158,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, switch ((buf[0] >> 1) & 7) { case 0: { // lzo compression int outlen = c->decomp_size, inlen = buf_size - 2; - if (lzo1x_decode(c->decomp_buf, &outlen, &buf[2], &inlen)) + if (av_lzo1x_decode(c->decomp_buf, &outlen, &buf[2], &inlen)) av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n"); break; } @@ -232,7 +232,7 @@ static av_cold int decode_init(AVCodecContext *avctx) { c->linelen = avctx->width * avctx->bits_per_coded_sample / 8; c->height = avctx->height; c->decomp_size = c->height * c->linelen; - c->decomp_buf = av_malloc(c->decomp_size + LZO_OUTPUT_PADDING); + c->decomp_buf = av_malloc(c->decomp_size + AV_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