summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Kumar P <naveenkumar.p@ittiam.com>2017-06-22 16:13:18 +0530
committerIvan Kutepov <its.kutepov@gmail.com>2017-09-14 23:54:25 +0300
commit6169b23963e04024bab14a20e2019bcca0ec0c81 (patch)
tree793b8eadf5ab761c5f3420285e91874936d08b5e
parent6b0ac936a7170fb501ba82ebc37c523c427cd69d (diff)
downloadandroid_external_libhevc-6169b23963e04024bab14a20e2019bcca0ec0c81.tar.gz
android_external_libhevc-6169b23963e04024bab14a20e2019bcca0ec0c81.tar.bz2
android_external_libhevc-6169b23963e04024bab14a20e2019bcca0ec0c81.zip
Fix array size for hrd parameters
change hard-coded array sizes to use appropriate defined constant Bug: 62534693 Bug: 62534786 Bug: 62534806 Bug: 62533909 Test: run POC before/after on master Change-Id: I999545c42d3321570e931991076a942a9134a17d (cherry picked from commit 4146e81c6dd50634b28b566adda5ac797f47c374) CVE-2017-0763
-rw-r--r--common/ihevc_structs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/ihevc_structs.h b/common/ihevc_structs.h
index 93d2ad4..baa6375 100644
--- a/common/ihevc_structs.h
+++ b/common/ihevc_structs.h
@@ -644,33 +644,33 @@ typedef struct
* if 1, , for the highest temporal sub-layers, the temporal distance between the HRD output times
* of consecutive pictures in output order is constrained refer to Table E-6
*/
- UWORD8 au1_fixed_pic_rate_general_flag[6];
+ UWORD8 au1_fixed_pic_rate_general_flag[VPS_MAX_SUB_LAYERS];
- UWORD8 au1_fixed_pic_rate_within_cvs_flag[6];
+ UWORD8 au1_fixed_pic_rate_within_cvs_flag[VPS_MAX_SUB_LAYERS];
/**
* if 1, , for the highest temporal sub-layers, the temporal distance (in clock ticks) between the
* element units that specify HRD output times of consecutive pictures in output order is constrained
* refer to Table E-6
*/
- UWORD8 au1_elemental_duration_in_tc_minus1[6];
+ UWORD8 au1_elemental_duration_in_tc_minus1[VPS_MAX_SUB_LAYERS];
/**
* specifies the HRD operational mode
*/
- UWORD8 au1_low_delay_hrd_flag[6];
+ UWORD8 au1_low_delay_hrd_flag[VPS_MAX_SUB_LAYERS];
/**
* 1 specifies the number of alternative CPB specifications in the
* bitstream of the cvs when HighestTid is equal to i
*/
- UWORD8 au1_cpb_cnt_minus1[6];
+ UWORD8 au1_cpb_cnt_minus1[VPS_MAX_SUB_LAYERS];
/**
* VUI level Sub-layer HRD parameters
*/
- sub_lyr_hrd_params_t as_sub_layer_hrd_params[6];
+ sub_lyr_hrd_params_t as_sub_layer_hrd_params[VPS_MAX_SUB_LAYERS];
}hrd_params_t;