aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cscd.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-02-02 20:16:00 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-02-02 20:16:00 +0000
commit0b178e56290d6e3cd8684c261e387bb8eafa38d3 (patch)
treeda38e26f0f6cc9f61aca344aef204d3d2228fbd5 /libavcodec/cscd.c
parentaa8d024ce2169574a7b21e2a9ac6b2da7ecd2f32 (diff)
downloadffmpeg-0b178e56290d6e3cd8684c261e387bb8eafa38d3.tar.gz
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
Diffstat (limited to 'libavcodec/cscd.c')
-rw-r--r--libavcodec/cscd.c4
1 files changed, 2 insertions, 2 deletions
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;