Revision 0b178e56 libavcodec/nuv.c
libavcodec/nuv.c | ||
---|---|---|
116 | 116 |
avctx->width = c->width = width; |
117 | 117 |
avctx->height = c->height = height; |
118 | 118 |
c->decomp_size = c->height * c->width * 3 / 2; |
119 |
c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + LZO_OUTPUT_PADDING); |
|
119 |
c->decomp_buf = av_realloc(c->decomp_buf, c->decomp_size + AV_LZO_OUTPUT_PADDING);
|
|
120 | 120 |
if (!c->decomp_buf) { |
121 | 121 |
av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n"); |
122 | 122 |
return 0; |
... | ... | |
175 | 175 |
buf_size -= 12; |
176 | 176 |
if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) { |
177 | 177 |
int outlen = c->decomp_size, inlen = buf_size; |
178 |
if (lzo1x_decode(c->decomp_buf, &outlen, buf, &inlen)) |
|
178 |
if (av_lzo1x_decode(c->decomp_buf, &outlen, buf, &inlen))
|
|
179 | 179 |
av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n"); |
180 | 180 |
buf = c->decomp_buf; |
181 | 181 |
buf_size = c->decomp_size; |
Also available in: Unified diff