summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-01-24 18:00:06 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-26 15:23:30 +0100
commitb6f3334a133c9df970ad2d55c96f9340995b6315 (patch)
treec6ec7ec8db987eae901990c131a304ff20682196 /libavcodec/h264dec.h
parentef4537bd1b84e35ca3eb0519a946b59ab775b33f (diff)
lavc/h264: replace MAX_DELAYED_PIC_COUNT by H264_MAX_DPB_FRAMES
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r--libavcodec/h264dec.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index c7662f930e..7553dd808c 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -52,8 +52,6 @@
#define H264_MAX_PICTURE_COUNT 36
-#define MAX_DELAYED_PIC_COUNT 16
-
/* Compiling in interlaced support reduces the speed
* of progressive decoding by about 2%. */
#define ALLOW_INTERLACE
@@ -465,8 +463,8 @@ typedef struct H264Context {
H264Ref default_ref[2];
H264Picture *short_ref[32];
H264Picture *long_ref[32];
- H264Picture *delayed_pic[MAX_DELAYED_PIC_COUNT + 2]; // FIXME size?
- int last_pocs[MAX_DELAYED_PIC_COUNT];
+ H264Picture *delayed_pic[H264_MAX_DPB_FRAMES + 2]; // FIXME size?
+ int last_pocs[H264_MAX_DPB_FRAMES];
H264Picture *next_output_pic;
int next_outputed_poc;
int poc_offset; ///< PicOrderCnt_offset from SMPTE RDD-2006