Revision 0b178e56 libavcodec/cscd.c

View differences:

libavcodec/cscd.c
158 158
    switch ((buf[0] >> 1) & 7) {
159 159
        case 0: { // lzo compression
160 160
            int outlen = c->decomp_size, inlen = buf_size - 2;
161
            if (lzo1x_decode(c->decomp_buf, &outlen, &buf[2], &inlen))
161
            if (av_lzo1x_decode(c->decomp_buf, &outlen, &buf[2], &inlen))
162 162
                av_log(avctx, AV_LOG_ERROR, "error during lzo decompression\n");
163 163
            break;
164 164
        }
......
232 232
    c->linelen = avctx->width * avctx->bits_per_coded_sample / 8;
233 233
    c->height = avctx->height;
234 234
    c->decomp_size = c->height * c->linelen;
235
    c->decomp_buf = av_malloc(c->decomp_size + LZO_OUTPUT_PADDING);
235
    c->decomp_buf = av_malloc(c->decomp_size + AV_LZO_OUTPUT_PADDING);
236 236
    if (!c->decomp_buf) {
237 237
        av_log(avctx, AV_LOG_ERROR, "Can't allocate decompression buffer.\n");
238 238
        return 1;

Also available in: Unified diff