Commit fc06c7aa authored by Laurent Aimar's avatar Laurent Aimar

* es_out; round up PCR (avoid non null PCR -> null).

parent 7b1f2ee4
...@@ -682,11 +682,11 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args ) ...@@ -682,11 +682,11 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
} }
} }
i_pcr = (int64_t)va_arg( args, int64_t ); i_pcr = (int64_t)va_arg( args, int64_t );
/* search program */ /* search program */
if( p_prgm ) if( p_prgm )
{ {
input_ClockManageRef( p_sys->p_input, p_prgm, i_pcr * 9 / 100); /* 11 is a vodoo trick to avoid non_pcr*9/100 to be null */
input_ClockManageRef( p_sys->p_input, p_prgm, (i_pcr + 11 ) * 9 / 100);
} }
p_sys->b_pcr_set = VLC_TRUE; p_sys->b_pcr_set = VLC_TRUE;
return VLC_SUCCESS; return VLC_SUCCESS;
......
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