[vlc-commits] demux: ts: use FROM_SCALE for pcr
Francois Cartegnie
git at videolan.org
Sun Jan 24 01:24:20 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 22 22:40:29 2016 +0100| [ac408dc1cc7af255221c1f3d48e25874a065bb1a] | committer: Francois Cartegnie
demux: ts: use FROM_SCALE for pcr
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac408dc1cc7af255221c1f3d48e25874a065bb1a
---
modules/demux/mpeg/ts.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 4574069..62210f6 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -3141,8 +3141,7 @@ static void ProgramSetPCR( demux_t *p_demux, ts_pmt_t *p_pmt, mtime_t i_pcr )
if ( p_sys->i_pmt_es )
{
- es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
- p_pmt->i_number, VLC_TS_0 + i_pcr * 100 / 9 );
+ es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR, p_pmt->i_number, FROM_SCALE(i_pcr) );
}
}
More information about the vlc-commits
mailing list