Commit c2a9ddc9 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: don't compute pcr offset from non video/audio

refs #17148
parent 810702d4
......@@ -1423,7 +1423,8 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
/* Compute PCR/DTS offset if any */
if( p_pmt->pcr.i_pcroffset == -1 && p_block->i_dts > VLC_TS_INVALID &&
p_pmt->pcr.i_current > VLC_TS_INVALID )
p_pmt->pcr.i_current > VLC_TS_INVALID &&
(p_es->fmt.i_cat == VIDEO_ES || p_es->fmt.i_cat == AUDIO_ES) )
{
int64_t i_dts27 = (p_block->i_dts - VLC_TS_0) * 9 / 100;
int64_t i_pcr = TimeStampWrapAround( p_pmt->pcr.i_first, p_pmt->pcr.i_current );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment