]> granicus.if.org Git - handbrake/commit
FFMPEG: Use avcodec_free_context(..) instead of deprecated leaking avcodec_close(..)
authorSven Gothel <sgothel@jausoft.com>
Fri, 12 Jan 2018 00:53:01 +0000 (01:53 +0100)
committerBradley Sepos <bradley@bradleysepos.com>
Tue, 29 May 2018 03:56:19 +0000 (23:56 -0400)
commit5a52b9265c71296f676be899f7f8ef893e12f7bb
tree897c3192ad9bd1ef8d41d6a11a5fedbf03b34886
parent2d6441de7700303e0ca1896bd0b6db0509ded3d2
FFMPEG: Use avcodec_free_context(..) instead of deprecated leaking avcodec_close(..)

Hence rename hb_avcodec_close -> hb_avcodec_free_context and pass the required ptr-ptr.
avcodec_free_context(..) ensures releasing of all resources attached to the context.
libhb/decavcodec.c
libhb/decpgssub.c
libhb/encavcodec.c
libhb/encavcodecaudio.c
libhb/hb.c
libhb/hbffmpeg.h