OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3a8629
)
avcodec/hevc_ps: Use get_bits_long() in decode_vui()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 15 Feb 2014 21:29:17 +0000
(22:29 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 15 Feb 2014 21:30:40 +0000
(22:30 +0100)
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>
libavcodec/hevc_ps.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc_ps.c
b/libavcodec/hevc_ps.c
index
302a59f
..
a4c74c9
100644
(file)
--- a/
libavcodec/hevc_ps.c
+++ b/
libavcodec/hevc_ps.c
@@
-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);