diff options
author | Sven Gothel <[email protected]> | 2018-01-12 01:53:01 +0100 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2018-05-28 23:56:19 -0400 |
commit | 5a52b9265c71296f676be899f7f8ef893e12f7bb (patch) | |
tree | 897c3192ad9bd1ef8d41d6a11a5fedbf03b34886 /libhb/hbffmpeg.h | |
parent | 2d6441de7700303e0ca1896bd0b6db0509ded3d2 (diff) |
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.
Diffstat (limited to 'libhb/hbffmpeg.h')
-rw-r--r-- | libhb/hbffmpeg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hbffmpeg.h b/libhb/hbffmpeg.h index c27f1f3d0..890b62ffc 100644 --- a/libhb/hbffmpeg.h +++ b/libhb/hbffmpeg.h @@ -24,7 +24,7 @@ void hb_avcodec_init(void); int hb_avcodec_open(AVCodecContext *, AVCodec *, AVDictionary **, int); -int hb_avcodec_close(AVCodecContext *); +void hb_avcodec_free_context(AVCodecContext **avctx); const char* const* hb_av_preset_get_names(int encoder); uint64_t hb_ff_mixdown_xlat(int hb_mixdown, int *downmix_mode); |