mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/hevc_ps: Use get_bits_long() in decode_vui()
Fix assertion failure Fixes: a225222ef88a0f5b1e93e1d0432debc3-asan_static-oob_124a17d_1448_cov_77608227_DBLK_E_VIXS_1.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f3a862935d
commit
b818637b84
@ -501,8 +501,8 @@ static void decode_vui(HEVCContext *s, HEVCSPS *sps)
|
||||
vui->vui_timing_info_present_flag = get_bits1(gb);
|
||||
|
||||
if (vui->vui_timing_info_present_flag) {
|
||||
vui->vui_num_units_in_tick = get_bits(gb, 32);
|
||||
vui->vui_time_scale = get_bits(gb, 32);
|
||||
vui->vui_num_units_in_tick = get_bits_long(gb, 32);
|
||||
vui->vui_time_scale = get_bits_long(gb, 32);
|
||||
vui->vui_poc_proportional_to_timing_flag = get_bits1(gb);
|
||||
if (vui->vui_poc_proportional_to_timing_flag)
|
||||
vui->vui_num_ticks_poc_diff_one_minus1 = get_ue_golomb_long(gb);
|
||||
|
Loading…
Reference in New Issue
Block a user