[vlc-commits] [Git][videolan/vlc][master] demux: ty: discard bitmask sizes bigger than 8 bytes
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Aug 27 15:44:37 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
0c6cfc30 by Steve Lhomme at 2026-08-27T15:24:48+00:00
demux: ty: discard bitmask sizes bigger than 8 bytes
We keep skipping the data as the format intends.
Fixes #30044
- - - - -
1 changed file:
- modules/demux/ty.c
Changes:
=====================================
modules/demux/ty.c
=====================================
@@ -1568,6 +1568,9 @@ static int ty_stream_seek_time(demux_t *p_demux, uint64_t l_seek_time)
}
/* determine which chunk has our seek_time */
+ if (p_sys->i_bits_per_seq_entry > (ARRAY_SIZE(p_sys->seq_table->chunk_bitmask) * 8))
+ i = p_sys->i_bits_per_seq_entry; // pretend we looped through the chunks
+ else
for (i=0; i<p_sys->i_bits_per_seq_entry; i++) {
uint64_t l_chunk_nr = i_seq_entry * p_sys->i_bits_per_seq_entry + i;
uint64_t l_chunk_offset = (l_chunk_nr + 1) * CHUNK_SIZE;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c6cfc30326e49edbcc284671745690177d5834a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c6cfc30326e49edbcc284671745690177d5834a
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