vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Apr 13 21:53:58 2015 +0200| [0cfe38b0114382ae545e36adb3730a815f4b45a2] | committer: Francois Cartegnie
demux: ts: ignore PCR field when required Repicked pcr might be on a track that lacks of pcr field. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0cfe38b0114382ae545e36adb3730a815f4b45a2 --- modules/demux/mpeg/ts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c index 872e333..0bc6863 100644 --- a/modules/demux/mpeg/ts.c +++ b/modules/demux/mpeg/ts.c @@ -3131,6 +3131,8 @@ static void PCRFixHandle( demux_t *p_demux, ts_pmt_t *p_pmt, block_t *p_block ) { int i_cand = FindPCRCandidate( p_pmt ); p_pmt->i_pid_pcr = i_cand; + if ( GetPID( p_demux->p_sys, p_pmt->i_pid_pcr )->probed.i_pcr_count == 0 ) + p_pmt->pcr.b_disable = true; msg_Warn( p_demux, "No PCR received for program %d, set up workaround using pid %d", p_pmt->i_number, i_cand ); UpdatePESFilters( p_demux, p_demux->p_sys->b_es_all ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
