]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imm5.c
avcodec/cri: Stop the bitreader at the end of uncompressed input
[ffmpeg] / libavcodec / imm5.c
index 917b414e66127c0e084894859d738d8c2e8d20d6..5f8faa4dd029194c3bee323f1ca66543d2f95ca8 100644 (file)
@@ -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;