]> git.sesse.net Git - vlc/commitdiff
demux: ts: use dts instead of pts for no-trust-pcr
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 17 Dec 2014 17:21:20 +0000 (18:21 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 18 Dec 2014 21:38:09 +0000 (22:38 +0100)
still wrong though, not stricty increasing with streams > 1 :/

modules/demux/ts.c

index c99ee2dbddd5fb39cf1eadb38bb9f36e0b308d57..14736b1ced90de08fb0b6cfba05ad7f85c8ce199 100644 (file)
@@ -1916,9 +1916,9 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
                         block_Duplicate( p_block ) );
             }
 
-            if (!p_sys->b_trust_pcr && p_block->i_pts > VLC_TS_INVALID )
+            if (!p_sys->b_trust_pcr && p_block->i_dts > VLC_TS_INVALID )
                 es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
-                        pid->i_owner_number, p_block->i_pts);
+                        pid->i_owner_number, p_block->i_dts);
 
             es_out_Send( p_demux->out, pid->es->id, p_block );