Unverified Commit 0f31c50c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ccextractor: fix build with FFmpeg 7 (#463548)

parents 70b8a5ee 64225206
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/src/lib_ccx/hardsubx.c b/src/lib_ccx/hardsubx.c
index 20b4388..fa6b5fa 100644
--- a/src/lib_ccx/hardsubx.c
+++ b/src/lib_ccx/hardsubx.c
@@ -125,7 +125,7 @@ int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_
 	if (ctx->frame)
 		av_frame_free(&ctx->frame);
 	if (ctx->rgb_frame)
 		av_frame_free(&ctx->rgb_frame);
-	avcodec_close(ctx->codec_ctx);
+	avcodec_free_context(&ctx->codec_ctx);
 	avformat_close_input(&ctx->format_ctx);
 }
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
  patches = [
    ./remove-default-commit-hash.patch
    ./remove-vendored-libraries.patch
    ./fix-avcodec-close.patch
  ]
  ++ finalAttrs.cargoDeps.vendorStaging.patches;