aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-17 10:27:06 -0300
committerJames Almer <jamrial@gmail.com>2023-04-20 09:53:30 -0300
commitab0f3f7fbf5e97752ba8d72ed0eddb61aaded787 (patch)
treeb5b757836e915b61f2c16c144414feda1e0a51e6
parent7fece7676b6bffd9f697455c1fc99c02fd4d5c27 (diff)
downloadffmpeg-ab0f3f7fbf5e97752ba8d72ed0eddb61aaded787.tar.gz
avcodec/hevc_ps: fix storage type for some PPS multilayer extension fields
The spec states that the range of values for them is −2^14 to 2^14 − 1, inclusive. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/hevc_ps.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index 184f87a001..5a80cf5d80 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -317,15 +317,15 @@ typedef struct HEVCPPS {
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];
- int8_t scaled_ref_layer_top_offset[64];
- int8_t scaled_ref_layer_right_offset[64];
- int8_t scaled_ref_layer_bottom_offset[64];
+ int16_t scaled_ref_layer_left_offset[64];
+ int16_t scaled_ref_layer_top_offset[64];
+ int16_t scaled_ref_layer_right_offset[64];
+ int16_t scaled_ref_layer_bottom_offset[64];
uint8_t ref_region_offset_present_flag[64];
- int8_t ref_region_left_offset[64];
- int8_t ref_region_top_offset[64];
- int8_t ref_region_right_offset[64];
- int8_t ref_region_bottom_offset[64];
+ int16_t ref_region_left_offset[64];
+ int16_t ref_region_top_offset[64];
+ int16_t ref_region_right_offset[64];
+ int16_t ref_region_bottom_offset[64];
uint8_t resample_phase_set_present_flag[64];
uint16_t phase_hor_luma[64];
uint16_t phase_ver_luma[64];