On 2014-03-07 17:47:09 +0100, Vittorio Giovara wrote: > From: Michael Niedermayer <[email protected]> > > Fix assertion failure. > Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind > --- > libavcodec/hevc_ps.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c > index c3aabe7..c4c7ee2 100644 > --- a/libavcodec/hevc_ps.c > +++ b/libavcodec/hevc_ps.c > @@ -499,8 +499,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);
should fix more than assertion errors unless the values are guaranteed to be byte aligned. patch ok Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
