[vlc-commits] [Git][videolan/vlc][3.0.x] demux: ty: reset the number of records on error
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Sep 17 10:50:08 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
c2434df3 by Steve Lhomme at 2025-09-17T09:21:30+00:00
demux: ty: reset the number of records on error
So it matches the data in p_sys->rec_hdrs.
Fixes #29294
(cherry picked from commit 6b6a44e75c52c55167c1ae6921d8b1fc01cc1b61)
- - - - -
1 changed file:
- modules/demux/ty.c
Changes:
=====================================
modules/demux/ty.c
=====================================
@@ -1963,7 +1963,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/c2434df31e41e8b752c7598a4e756e2ae5f5dc46
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c2434df31e41e8b752c7598a4e756e2ae5f5dc46
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