[vlc-commits] demux: ts: fix PCR repicking

Francois Cartegnie git at videolan.org
Mon Jan 30 18:10:46 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 30 18:09:14 2017 +0100| [ab402abbe5faef47bb6fbe680cf4b41d04c3d2f2] | committer: Francois Cartegnie

demux: ts: fix PCR repicking

Was reselecting previous pcr if lowest pid

after 426edade588f6c01a8aa1bcc1cc76601594a1686 changes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab402abbe5faef47bb6fbe680cf4b41d04c3d2f2
---

 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 a44aa1f..2d60c1e 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2291,8 +2291,7 @@ int FindPCRCandidate( ts_pmt_t *p_pmt )
     for( int i=0; i<p_pmt->e_streams.i_size; i++ )
     {
         ts_pid_t *p_pid = p_pmt->e_streams.p_elems[i];
-        if( SEEN(p_pid) &&
-            (!p_cand || p_cand->i_pid != i_previous) )
+        if( SEEN(p_pid) && p_pid->i_pid != i_previous )
         {
             if( p_pid->probed.i_pcr_count ) /* check PCR frequency first */
             {



More information about the vlc-commits mailing list