ctx->h264_avctx->thread_count = 1;
ctx->h264_avctx->flags = avctx->flags;
ctx->h264_avctx->flags2 = avctx->flags2;
- ret = ff_codec_open2_recursive(ctx->h264_avctx, codec, NULL);
+ ret = avcodec_open2(ctx->h264_avctx, codec, NULL);
if (ret < 0)
return ret;
ctx->hevc_avctx->thread_count = 1;
ctx->hevc_avctx->flags = avctx->flags;
ctx->hevc_avctx->flags2 = avctx->flags2;
- ret = ff_codec_open2_recursive(ctx->hevc_avctx, codec, NULL);
+ ret = avcodec_open2(ctx->hevc_avctx, codec, NULL);
if (ret < 0)
return ret;
return 0;
}
-AVCodec ff_imm5_decoder = {
+const AVCodec ff_imm5_decoder = {
.name = "imm5",
.long_name = NULL_IF_CONFIG_SMALL("Infinity IMM5"),
.type = AVMEDIA_TYPE_VIDEO,