Loading pkgs/by-name/cc/ccextractor/fix-avcodec-close.patch 0 → 100644 +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); } pkgs/by-name/cc/ccextractor/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
pkgs/by-name/cc/ccextractor/fix-avcodec-close.patch 0 → 100644 +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); }
pkgs/by-name/cc/ccextractor/package.nix +1 −0 Original line number Diff line number Diff line Loading @@ -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; Loading