ffmpeg: remove call to deprecated avcodec_close()

This commit is contained in:
nick black 2024-03-01 07:57:44 -05:00
parent 2e2cc8121c
commit cb1244d3d4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -707,7 +707,7 @@ ffmpeg_printbanner(fbuf* f){
static void
ffmpeg_details_destroy(ncvisual_details* deets){
avcodec_close(deets->codecctx);
// avcodec_close() is deprecated; avcodec_free_context() suffices
avcodec_free_context(&deets->subtcodecctx);
avcodec_free_context(&deets->codecctx);
av_frame_free(&deets->frame);