summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_ps.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-17 00:11:06 -0300
committerJames Almer <jamrial@gmail.com>2023-04-20 09:53:30 -0300
commit7fece7676b6bffd9f697455c1fc99c02fd4d5c27 (patch)
treea12f86b357be7f5d1c54c2d89e8f303d90c4a0fd /libavcodec/hevc_ps.h
parentc17e33c0589c64354d6daf2b19f0134329c9407f (diff)
avcodec/hevc_ps: further constrain allowed num_ref_loc_offsets values
The spec says: "The value of num_ref_loc_offsets shall be in the range of 0 to vps_max_layers_minus1, inclusive". Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_ps.h')
-rw-r--r--libavcodec/hevc_ps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index 1f704108e3..184f87a001 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -314,7 +314,7 @@ typedef struct HEVCPPS {
uint8_t poc_reset_info_present_flag;
uint8_t pps_infer_scaling_list_flag;
uint8_t pps_scaling_list_ref_layer_id;
- uint16_t num_ref_loc_offsets;
+ uint8_t num_ref_loc_offsets;
uint8_t ref_loc_offset_layer_id[64];
uint8_t scaled_ref_layer_offset_present_flag[64];
int8_t scaled_ref_layer_left_offset[64];