From c3f0357bdf7d3c542aad2c58b94184b9f56edc41 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 12 May 2017 16:36:41 +0200 Subject: hevcdec: move the MD5 context out of HEVCSEIPictureHash back into HEVCContext HEVCSEIPictureHash should store only the information extracted from the bitstream and exported to the higher layer (the decoder or the parser). The MD5 context is allocated, used and freed by this higher layer, so it makes more sense for it to also be stored there. --- libavcodec/hevcdec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/hevcdec.h') diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index f2c589217f..7adb826e72 100644 --- a/libavcodec/hevcdec.h +++ b/libavcodec/hevcdec.h @@ -27,6 +27,7 @@ #include #include "libavutil/buffer.h" +#include "libavutil/md5.h" #include "avcodec.h" #include "bswapdsp.h" @@ -462,6 +463,7 @@ typedef struct HEVCContext { HEVCParamSets ps; HEVCSEI sei; + struct AVMD5 *md5_ctx; AVBufferPool *tab_mvf_pool; AVBufferPool *rpl_tab_pool; -- cgit v1.2.3