aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevcdec.h
diff options
context:
space:
mode:
authorXu Guangxin <guangxin.xu@intel.com>2022-07-15 13:06:42 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-07-27 10:54:38 +0800
commit99501b50157702af191a6cc8d0ddb89663d69d61 (patch)
treefab8c12f1c41e62c048e3173dc9927fd10e2e47a /libavcodec/hevcdec.h
parent6c12fe0ddaf5bf9914027f1f4acfc196008c9aba (diff)
downloadffmpeg-99501b50157702af191a6cc8d0ddb89663d69d61.tar.gz
lavc/hevcdec: do not let missing ref frames invovled in dpb process
We will generate a new frame for a missed reference. The frame can only be used for reference. We assign an invalid decode sequence to it, so it will not be involved in any dpb process. Tested-by: Fei Wang <fei.w.wang@intel.com> Signed-off-by: Fei Wang <fei.w.wang@intel.com> Signed-off-by: Xu Guangxin <guangxin.xu@intel.com>
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r--libavcodec/hevcdec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h
index 6cef9e6f0a..9d3f4adbb3 100644
--- a/libavcodec/hevcdec.h
+++ b/libavcodec/hevcdec.h
@@ -395,6 +395,9 @@ typedef struct DBParams {
#define HEVC_FRAME_FLAG_LONG_REF (1 << 2)
#define HEVC_FRAME_FLAG_BUMPING (1 << 3)
+#define HEVC_SEQUENCE_COUNTER_MASK 0xff
+#define HEVC_SEQUENCE_COUNTER_INVALID (HEVC_SEQUENCE_COUNTER_MASK + 1)
+
typedef struct HEVCFrame {
AVFrame *frame;
AVFrame *frame_grain;