summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorClement Lecigne <clecigne@google.com>2023-05-17 19:28:54 +0200
committerJames Almer <jamrial@gmail.com>2023-05-17 17:51:36 -0300
commit96c30affba5123bf3ba7df0ec64fee1eded3d473 (patch)
tree823321e94837157069a9caff5d20a330e1d7b9bb /libavcodec/hevc_ps.h
parent84505310594e61a9eba3a4abbfc00b882db33a08 (diff)
downloadffmpeg-master.tar.gz
avcodec/hevc_ps: add proper bound checks around cm_ref_layer_id in colour_mapping_table.HEADmaster
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index a0437815d6..2124deb953 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -332,8 +332,8 @@ typedef struct HEVCPPS {
int8_t phase_hor_chroma[64];
int8_t phase_ver_chroma[64];
uint8_t colour_mapping_enabled_flag;
- uint16_t num_cm_ref_layers_minus1;
- uint8_t cm_ref_layer_id[63];
+ uint8_t num_cm_ref_layers;
+ uint8_t cm_ref_layer_id[62];
uint8_t cm_octant_depth;
uint8_t cm_y_part_num_log2;
uint8_t luma_bit_depth_cm_input;