diff --git a/libavcodec/avrndec.c b/libavcodec/avrndec.c index c5a60acd4f..d85e3c2000 100644 --- a/libavcodec/avrndec.c +++ b/libavcodec/avrndec.c @@ -65,7 +65,7 @@ static av_cold int init(AVCodecContext *avctx) a->mjpeg_avctx->width = avctx->width; a->mjpeg_avctx->height = avctx->height; - if ((ret = ff_codec_open2_recursive(a->mjpeg_avctx, codec, &thread_opt)) < 0) { + if ((ret = avcodec_open2(a->mjpeg_avctx, codec, &thread_opt)) < 0) { av_log(avctx, AV_LOG_ERROR, "MJPEG codec failed to open\n"); } av_dict_free(&thread_opt); diff --git a/libavcodec/imm5.c b/libavcodec/imm5.c index 917b414e66..5f8faa4dd0 100644 --- a/libavcodec/imm5.c +++ b/libavcodec/imm5.c @@ -63,7 +63,7 @@ static av_cold int imm5_init(AVCodecContext *avctx) 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; @@ -76,7 +76,7 @@ static av_cold int imm5_init(AVCodecContext *avctx) 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; diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index dfd80f6dbc..7c888b6ec8 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -125,7 +125,7 @@ static av_cold int tdsc_init(AVCodecContext *avctx) ctx->jpeg_avctx->flags2 = avctx->flags2; ctx->jpeg_avctx->dct_algo = avctx->dct_algo; ctx->jpeg_avctx->idct_algo = avctx->idct_algo; - ret = ff_codec_open2_recursive(ctx->jpeg_avctx, codec, NULL); + ret = avcodec_open2(ctx->jpeg_avctx, codec, NULL); if (ret < 0) return ret;