[vlc-commits] [Git][videolan/vlc][master] demux: ts: use FROM_SCALE_NZ() instead of CLOCK_FREQ reference
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Nov 15 07:33:31 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7e03d42a by Steve Lhomme at 2025-11-15T07:18:03+00:00
demux: ts: use FROM_SCALE_NZ() instead of CLOCK_FREQ reference
The original 225e0bc09b847167433d49a591b25a8da4e7655f commit did
check the i_pcrref against FROM_SCALE_NZ(1). And was lost in
af38707d0e72f81c5e6e0258a91f4718ca7bdf76.
- - - - -
1 changed file:
- modules/demux/mpeg/ts.c
Changes:
=====================================
modules/demux/mpeg/ts.c
=====================================
@@ -1715,7 +1715,7 @@ static void ParsePESDataChain( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes,
i_pcrref != VLC_TICK_INVALID &&
(p_es->fmt.i_cat == VIDEO_ES || p_es->fmt.i_cat == AUDIO_ES) )
{
- if( p_block->i_dts + FROM_SCALE_NZ(CLOCK_FREQ/90000) < i_pcrref )
+ if( p_block->i_dts + FROM_SCALE_NZ(1) < i_pcrref )
{
p_pmt->pcr.i_pcroffset = i_pcrref - p_block->i_dts + VLC_TICK_FROM_MS(80);
msg_Warn( p_demux, "Broken stream: pid %d sends packets with dts %"PRId64
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7e03d42a055cd44cf9b8cc52828a9d784b8070a3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7e03d42a055cd44cf9b8cc52828a9d784b8070a3
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