Commit 53a9fa09 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: fix divbyzero

parent 06682f22
......@@ -798,7 +798,7 @@ static block_t *OutputPicture( decoder_t *p_dec )
p_sys->i_frame_dts = VLC_TS_INVALID;
p_sys->i_frame_pts = VLC_TS_INVALID;
}
else if( p_sys->b_timing_info_present_flag )
else if( p_sys->b_timing_info_present_flag && p_sys->i_time_scale )
{
p_sys->i_frame_pts += CLOCK_FREQ * p_sys->i_num_units_in_tick / p_sys->i_time_scale;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment