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;