[vlc-commits] [Git][videolan/vlc][master] demux: h26x: restore missing PCR
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Nov 16 08:16:10 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
efc0d82b by François Cartegnie at 2024-11-16T07:50:40+00:00
demux: h26x: restore missing PCR
regression by 4d691734b189ccae3300c8d0d40eb6428fadd486
refs #28871
for some reason SetPCR was removed
- - - - -
1 changed file:
- modules/demux/mpeg/h26x.c
Changes:
=====================================
modules/demux/mpeg/h26x.c
=====================================
@@ -480,6 +480,10 @@ static int Demux( demux_t *p_demux)
bool frame = p_block_out->i_flags & BLOCK_FLAG_TYPE_MASK;
const vlc_tick_t i_frame_length = p_block_out->i_length;
+ /* first output */
+ if( date_Get( &p_sys->output_dts ) == VLC_TICK_0 )
+ es_out_SetPCR( p_demux->out, date_Get( &p_sys->output_dts ) );
+
es_out_Send( p_demux->out, p_sys->p_es, p_block_out );
vlc_tick_t pcr = b_eof ? dts : date_Get( &p_sys->output_dts );
@@ -499,6 +503,8 @@ static int Demux( demux_t *p_demux)
}
}
+ es_out_SetPCR( p_demux->out, pcr );
+
p_block_out = p_next;
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/efc0d82b7be3aa1894c8ab3267ca673ab035a9a3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/efc0d82b7be3aa1894c8ab3267ca673ab035a9a3
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