History

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.

James Almer committed 3 years ago

Commit ab0f3f71 parent 7fece761 file · +8 −8Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/hevc_ps.h+8−8
@@ -317,15 +317,15 @@ typedef struct HEVCPPS { · 316 unmodified lines
317317 uint8_t num_ref_loc_offsets;
318318 uint8_t ref_loc_offset_layer_id[64];
319319 uint8_t scaled_ref_layer_offset_present_flag[64];
320− int8_t scaled_ref_layer_left_offset[64];
321− int8_t scaled_ref_layer_top_offset[64];
322− int8_t scaled_ref_layer_right_offset[64];
323− int8_t scaled_ref_layer_bottom_offset[64];
320+ int16_t scaled_ref_layer_left_offset[64];
321+ int16_t scaled_ref_layer_top_offset[64];
322+ int16_t scaled_ref_layer_right_offset[64];
323+ int16_t scaled_ref_layer_bottom_offset[64];
324324 uint8_t ref_region_offset_present_flag[64];
325− int8_t ref_region_left_offset[64];
326− int8_t ref_region_top_offset[64];
327− int8_t ref_region_right_offset[64];
328− int8_t ref_region_bottom_offset[64];
325+ int16_t ref_region_left_offset[64];
326+ int16_t ref_region_top_offset[64];
327+ int16_t ref_region_right_offset[64];
328+ int16_t ref_region_bottom_offset[64];
329329 uint8_t resample_phase_set_present_flag[64];
330330 uint16_t phase_hor_luma[64];
331331 uint16_t phase_ver_luma[64];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t