aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264dec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-01-24 18:00:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-26 15:23:08 +0100
commitb05cebe60274bd300dd867111fe4a98006bb1503 (patch)
tree5305927c9b06a702333ce6eb5a35ad7612e7fb47 /libavcodec/h264dec.h
parent0ebfd6485841e3b1e73b794065e05c2c0b36e984 (diff)
downloadffmpeg-b05cebe60274bd300dd867111fe4a98006bb1503.tar.gz
lavc/h264: replace MAX_MMCO_COUNT with H264_MAX_MMCO_COUNT
They apparently serve the same purpose; the latter is one larger and has a comment explaining how the value is derived, so seems more trustworthy.
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 dffd723ba6..38a4e96e26 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -52,8 +52,6 @@
#define H264_MAX_PICTURE_COUNT 36
-#define MAX_MMCO_COUNT 66
-
#define MAX_DELAYED_PIC_COUNT 16
/* Compiling in interlaced support reduces the speed
@@ -330,7 +328,7 @@ typedef struct H264SliceContext {
uint8_t cabac_state[1024];
int cabac_init_idc;
- MMCO mmco[MAX_MMCO_COUNT];
+ MMCO mmco[H264_MAX_MMCO_COUNT];
int nb_mmco;
int explicit_ref_marking;
@@ -489,7 +487,7 @@ typedef struct H264Context {
/**
* memory management control operations buffer.
*/
- MMCO mmco[MAX_MMCO_COUNT];
+ MMCO mmco[H264_MAX_MMCO_COUNT];
int nb_mmco;
int mmco_reset;
int explicit_ref_marking;