[vlc-commits] [Git][videolan/vlc][master] demux: ts: fix comparison of MPEG syncword
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Apr 3 09:51:28 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
01f48882 by Steve Lhomme at 2026-04-03T11:20:42+02:00
demux: ts: fix comparison of MPEG syncword
We don't want to compare with 0x00, 0x00, 0x01, 0x00.
Introduced in bfb2e970783cfcf9635556ca174bcd5691cbbbc2.
- - - - -
1 changed file:
- modules/demux/mpeg/ts_hotfixes.c
Changes:
=====================================
modules/demux/mpeg/ts_hotfixes.c
=====================================
@@ -114,7 +114,7 @@ void ProbePES( demux_t *p_demux, ts_pid_t *pid, const block_t *p_pkt )
{
pid->probed.i_fourcc = VLC_CODEC_H264;
}
- else if( !memcmp( p_data, "\x00\x00\x01", 4 ) )
+ else if( !memcmp( p_data, "\x00\x00\x01", 3 ) )
{
pid->probed.i_fourcc = VLC_CODEC_MPGV;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/01f488820527ffb05dcae19f8ea66cd10c70c32b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/01f488820527ffb05dcae19f8ea66cd10c70c32b
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list