Commit 2f271f6a authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ps: change bad scr offset to 2s

that's max for audio
parent fc972282
...@@ -566,7 +566,7 @@ static int Demux( demux_t *p_demux ) ...@@ -566,7 +566,7 @@ static int Demux( demux_t *p_demux )
if( p_sys->i_pack_scr >= 0 && !p_sys->b_bad_scr ) if( p_sys->i_pack_scr >= 0 && !p_sys->b_bad_scr )
{ {
if( (tk->fmt.i_cat == AUDIO_ES || tk->fmt.i_cat == VIDEO_ES) && if( (tk->fmt.i_cat == AUDIO_ES || tk->fmt.i_cat == VIDEO_ES) &&
tk->i_first_pts > VLC_TS_INVALID && tk->i_first_pts - p_sys->i_pack_scr > CLOCK_FREQ ) tk->i_first_pts > VLC_TS_INVALID && tk->i_first_pts - p_sys->i_pack_scr > 2 * CLOCK_FREQ )
{ {
msg_Warn( p_demux, "Incorrect SCR timing offset by of %"PRId64 "ms, disabling", msg_Warn( p_demux, "Incorrect SCR timing offset by of %"PRId64 "ms, disabling",
tk->i_first_pts - p_sys->i_pack_scr / 1000 ); tk->i_first_pts - p_sys->i_pack_scr / 1000 );
......
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