diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-11-12 17:43:55 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-12-14 09:06:45 +0100 |
commit | 972c71e9cb63e24f57ee481e413199c7d88a8813 (patch) | |
tree | bf0a84ea4cd0a84dc8f1c1e0a6c6f80c7934653c /libavcodec/utils.c | |
parent | 061a0c14bb5767bca72e3a7227ca400de439ba09 (diff) |
lavc: add support for filtering packets before decoding
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8a422d7669..2978109a23 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -40,6 +40,7 @@ #include "libavutil/samplefmt.h" #include "libavutil/dict.h" #include "avcodec.h" +#include "decode.h" #include "libavutil/opt.h" #include "me_cmp.h" #include "mpegvideo.h" @@ -789,6 +790,8 @@ av_cold int avcodec_close(AVCodecContext *avctx) avctx->hwaccel->uninit(avctx); av_freep(&avctx->internal->hwaccel_priv_data); + ff_decode_bsfs_uninit(avctx); + av_freep(&avctx->internal); } |