]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/imm5.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / imm5.c
index 917b414e66127c0e084894859d738d8c2e8d20d6..cb8a619a4ae035989441e466e8b3c061193795d1 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;
 
@@ -178,7 +178,7 @@ static av_cold int imm5_close(AVCodecContext *avctx)
     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,