return AVERROR_INVALIDDATA;
}
- if ((ret = ff_reget_buffer(avctx, frame)) < 0)
+ if ((ret = ff_reget_buffer(avctx, frame, 0)) < 0)
return ret;
if (!avctx->frame_number)
return avpkt->size;
}
-AVCodec ff_yop_decoder = {
+const AVCodec ff_yop_decoder = {
.name = "yop",
.long_name = NULL_IF_CONFIG_SMALL("Psygnosis YOP Video"),
.type = AVMEDIA_TYPE_VIDEO,
.init = yop_decode_init,
.close = yop_decode_close,
.decode = yop_decode_frame,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};