Mercurial > libavcodec.hg
diff nuv.c @ 8732:967c0a1a60a0 libavcodec
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.
author | reimar |
---|---|
date | Mon, 02 Feb 2009 20:16:00 +0000 |
parents | c4f105f7c886 |
children | bf274494b66e |
line wrap: on
line diff
--- a/nuv.c Mon Feb 02 18:51:02 2009 +0000 +++ b/nuv.c Mon Feb 02 20:16:00 2009 +0000 @@ -116,7 +116,7 @@ avctx->width = c->width = width; avctx->height = c->height = height; c->decomp_size = c->height * c->width * 3 / 2; - c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + LZO_OUTPUT_PADDING); + c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + AV_LZO_OUTPUT_PADDING); if (!c->decomp_buf) { av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); return 0; @@ -175,7 +175,7 @@ buf_size -= 12; if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) { int outlen = c->decomp_size, inlen = buf_size; - if (lzo1x_decode(c->decomp_buf, &outlen, buf, &inlen)) + if (av_lzo1x_decode(c->decomp_buf, &outlen, buf, &inlen)) av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n"); buf = c->decomp_buf; buf_size = c->decomp_size;