int skip;
int tmp;
- if ((ret = ff_reget_buffer(avctx, s->frame)) < 0)
+ if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
return ret;
bytestream2_init(&s->gb, buf, buf_size);
return AVERROR_INVALIDDATA;
}
-AVCodec ff_ulti_decoder = {
+const AVCodec ff_ulti_decoder = {
.name = "ultimotion",
.long_name = NULL_IF_CONFIG_SMALL("IBM UltiMotion"),
.type = AVMEDIA_TYPE_VIDEO,
.close = ulti_decode_end,
.decode = ulti_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};