nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/src/lib_ccx/hardsubx.c b/src/lib_ccx/hardsubx.c
2index 20b4388..fa6b5fa 100644
3--- a/src/lib_ccx/hardsubx.c
4+++ b/src/lib_ccx/hardsubx.c
5@@ -125,7 +125,7 @@ int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_
6 if (ctx->frame)
7 av_frame_free(&ctx->frame);
8 if (ctx->rgb_frame)
9 av_frame_free(&ctx->rgb_frame);
10- avcodec_close(ctx->codec_ctx);
11+ avcodec_free_context(&ctx->codec_ctx);
12 avformat_close_input(&ctx->format_ctx);
13 }