ffmpeg: remove call to deprecated avcodec_close()

pull/2768/head
nick black 3 months ago
parent 2e2cc8121c
commit cb1244d3d4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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);

Loading…
Cancel
Save