mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
ffmpeg: remove call to deprecated avcodec_close()
This commit is contained in:
parent
2e2cc8121c
commit
cb1244d3d4
@ -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…
x
Reference in New Issue
Block a user