Skip to content

Commit 25a447d

Browse files
authored
Fix build with ffmpeg 8 (#1739)
1 parent 7eba462 commit 25a447d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_ccx/hardsubx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_
125125
av_frame_free(&ctx->frame);
126126
if (ctx->rgb_frame)
127127
av_frame_free(&ctx->rgb_frame);
128-
avcodec_close(ctx->codec_ctx);
128+
avcodec_free_context(&ctx->codec_ctx);
129129
avformat_close_input(&ctx->format_ctx);
130130
}
131131

0 commit comments

Comments
 (0)