[vlc-commits] [Git][videolan/vlc][master] demux: ts: fix regression with BD packets
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Mar 29 12:02:26 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
e9d1b108 by François Cartegnie at 2026-03-29T13:48:20+02:00
demux: ts: fix regression with BD packets
regression by 7500ddcd37503d551f293f2fb92bf76c38b52b31
- - - - -
1 changed file:
- modules/demux/mpeg/ts.c
Changes:
=====================================
modules/demux/mpeg/ts.c
=====================================
@@ -1791,11 +1791,12 @@ static bool CheckAndResync( demux_t *p_demux )
demux_sys_t *p_sys = p_demux->p_sys;
const uint8_t *p_peek;
- if( vlc_stream_Peek( p_sys->stream, &p_peek, 1 ) != 1 )
+ if( vlc_stream_Peek( p_sys->stream, &p_peek, 1 + p_sys->i_packet_header_size )
+ != 1 + p_sys->i_packet_header_size )
return true;
/* Check sync byte and re-sync if needed */
- if( p_peek[0] == 0x47 )
+ if( p_peek[p_sys->i_packet_header_size] == 0x47 )
return true;
msg_Warn( p_demux, "lost synchro at %" PRIu64, vlc_stream_Tell( p_sys->stream ) );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e9d1b108458f1586c973d5d960798b7e79387da2
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e9d1b108458f1586c973d5d960798b7e79387da2
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list