[vlc-commits] [Git][videolan/vlc][master] demux: ts: wrap probing times

François Cartegnie (@fcartegnie) gitlab at videolan.org
Mon May 19 03:35:22 UTC 2025



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
5f508b12 by François Cartegnie at 2025-05-19T03:19:20+00:00
demux: ts: wrap probing times

- - - - -


1 changed file:

- modules/demux/mpeg/ts_psi.c


Changes:

=====================================
modules/demux/mpeg/ts_psi.c
=====================================
@@ -2232,6 +2232,9 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
         ProbeStart( p_demux, p_pmt->i_number );
         ProbeEnd( p_demux, p_pmt->i_number );
         p_pmt->b_last_dts_probed = true;
+        if( p_pmt->i_last_dts != VLC_TICK_INVALID &&
+            p_pmt->i_last_dts < p_pmt->pcr.i_first_dts )
+            p_pmt->i_last_dts = TimeStampWrapAround( p_pmt->pcr.i_first_dts, p_pmt->i_last_dts );
     }
 
     dvbpsi_pmt_delete( p_dvbpsipmt );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5f508b12fa5cd1d02a59a4c72b012360b0659d66

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5f508b12fa5cd1d02a59a4c72b012360b0659d66
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list