[vlc-commits] [Git][videolan/vlc][3.0.x] mux: ts: truncate payload of incomplete ES packets
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Tue Sep 8 14:06:48 UTC 2026
François Cartegnie pushed to branch 3.0.x at VideoLAN / VLC
Commits:
bc0571bd by François Cartegnie at 2026-09-08T15:51:51+02:00
mux: ts: truncate payload of incomplete ES packets
fix #30086
(cherry picked from commit 2bff8fc626fe2b38639a23849fc4a12ec4add4f3)
- - - - -
1 changed file:
- modules/mux/mpeg/ts.c
Changes:
=====================================
modules/mux/mpeg/ts.c
=====================================
@@ -1647,6 +1647,7 @@ static block_t *FixPES( sout_mux_t *p_mux, block_fifo_t *p_fifo )
}
i_copy = __MIN( STD_PES_PAYLOAD - i_size, p_next->i_buffer );
+ p_data->i_buffer = i_size + i_copy;
memcpy( &p_data->p_buffer[i_size], p_next->p_buffer, i_copy );
if( p_next->i_pts )
p_next->i_pts += p_next->i_length * i_copy / p_next->i_buffer;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bc0571bd30ba4b328e7189baeecffd15104e4dd8
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bc0571bd30ba4b328e7189baeecffd15104e4dd8
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list