Commit 052fcc7a authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: don't use unknown dpb removal delay

parent 8804f827
......@@ -848,7 +848,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
p_pic->i_dts = date_Get( &p_sys->dts );
/* PTS Fixup, interlaced fields (multiple AU/block) */
if( p_pic->i_pts <= VLC_TS_INVALID && p_sps->vui.i_time_scale )
if( p_pic->i_pts <= VLC_TS_INVALID && p_sps->vui.i_time_scale &&
p_sps->vui.b_valid && p_sps->vui.b_hrd_parameters_present_flag )
{
mtime_t i_pts_delay = CLOCK_FREQ * p_sys->i_dpb_output_delay *
p_sps->vui.i_num_units_in_tick / p_sps->vui.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