skip0 = dxv_decompress_opcodes(gb, op_data0, op_size0);
if (skip0 < 0)
return skip0;
- bytestream2_seek(gb, data_start + op_offset + skip0 - 12, SEEK_SET);
if (op_size1 > max_op_size1)
return AVERROR_INVALIDDATA;
skip1 = dxv_decompress_opcodes(gb, op_data1, op_size1);
return ret;
}
- bytestream2_seek(gb, data_start + op_offset + skip0 + skip1 - 12, SEEK_SET);
+ bytestream2_seek(gb, data_start - 12 + op_offset + skip0 + skip1, SEEK_SET);
return 0;
}
{
DXVContext *ctx = avctx->priv_data;
GetByteContext *gbc = &ctx->gbc;
- uint32_t value, op;
- int idx, prev, state = 0;
+ uint32_t value, op, prev;
+ int idx, state = 0;
int pos = 4;
int run = 0;
int probe, check;
return 0;
}
-AVCodec ff_dxv_decoder = {
+const AVCodec ff_dxv_decoder = {
.name = "dxv",
.long_name = NULL_IF_CONFIG_SMALL("Resolume DXV"),
.type = AVMEDIA_TYPE_VIDEO,