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");
165
165
case 1: { // zlib compression
167
167
unsigned long dlen = c->decomp_size;
168
168
if (uncompress(c->decomp_buf, &dlen, &buf[2], buf_size - 2) != Z_OK)
169
169
av_log(avctx, AV_LOG_ERROR, "error during zlib decompression\n");