[vlc-commits] demux: ps: change bad scr offset to 2s
Francois Cartegnie
git at videolan.org
Thu Nov 16 23:26:13 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 16 23:10:01 2017 +0100| [2f271f6ac443ae6379248a46699a8c8d67b14e7e] | committer: Francois Cartegnie
demux: ps: change bad scr offset to 2s
that's max for audio
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f271f6ac443ae6379248a46699a8c8d67b14e7e
---
modules/demux/mpeg/ps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index 185770d56a..e6c5ab1da9 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -566,7 +566,7 @@ static int Demux( demux_t *p_demux )
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) &&
- 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",
tk->i_first_pts - p_sys->i_pack_scr / 1000 );
More information about the vlc-commits
mailing list