[vlc-commits] [Git][videolan/vlc][master] demux: ty: reset the number of records on error
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Sep 17 13:45:15 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c9f1df0a by Steve Lhomme at 2025-09-17T12:52:41+00:00
demux: ty: reset the number of records on error
So it matches the data in p_sys->rec_hdrs.
Fixes #29294
- - - - -
1 changed file:
- modules/demux/ty.c
Changes:
=====================================
modules/demux/ty.c
=====================================
@@ -1958,7 +1958,10 @@ static int get_chunk_header(demux_t *p_demux)
p_sys->rec_hdrs = parse_chunk_headers(p_hdr_buf, i_num_recs, &i_payload_size);
free(p_hdr_buf);
if (unlikely(p_sys->rec_hdrs == NULL))
+ {
+ p_sys->i_num_recs = 0;
return VLC_ENOMEM;
+ }
p_sys->i_stuff_cnt = CHUNK_SIZE - 4 -
(p_sys->i_num_recs * REC_SIZE) - i_payload_size;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9f1df0aeaecd8598096c1a5df6b0974a2afc8f5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c9f1df0aeaecd8598096c1a5df6b0974a2afc8f5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list