[vlc-commits] [Git][videolan/vlc][master] mux: ts: truncate payload of incomplete ES packets

François Cartegnie (@fcartegnie) gitlab at videolan.org
Sat Sep 5 06:50:09 UTC 2026



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


Commits:
2bff8fc6 by François Cartegnie at 2026-09-05T08:37:24+02:00
mux: ts: truncate payload of incomplete ES packets

fix #30086

- - - - -


1 changed file:

- modules/mux/mpeg/ts.c


Changes:

=====================================
modules/mux/mpeg/ts.c
=====================================
@@ -1601,6 +1601,7 @@ static block_t *FixPES( 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 );
         vlc_tick_t offset = p_next->i_length * i_copy / p_next->i_buffer;
         if( p_next->i_pts )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2bff8fc626fe2b38639a23849fc4a12ec4add4f3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2bff8fc626fe2b38639a23849fc4a12ec4add4f3
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