[vlc-commits] [Git][videolan/vlc][master] demux: mp4: fix trun realloc
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Mar 19 14:51:06 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
556dd958 by François Cartegnie at 2026-03-19T13:40:56+00:00
demux: mp4: fix trun realloc
refs #29687
- - - - -
1 changed file:
- modules/demux/mp4/mp4.c
Changes:
=====================================
modules/demux/mp4/mp4.c
=====================================
@@ -5236,7 +5236,7 @@ static int FragCreateTrunIndex( demux_t *p_demux, MP4_Box_t *p_moof,
(i_trun_count + p_track->context.runs.i_count) * sizeof(mp4_run_t));
if(!p_track->context.runs.p_array)
continue;
- memset(&p_track->context.runs.p_array[i_trun_count], 0, p_track->context.runs.i_count * sizeof(mp4_run_t));
+ memset(&p_track->context.runs.p_array[p_track->context.runs.i_count], 0, i_trun_count * sizeof(mp4_run_t));
i_trun_count += p_track->context.runs.i_count;
/* Get defaults for this/these RUN */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/556dd958c0ac086bd90e9064c800a000f04b88b4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/556dd958c0ac086bd90e9064c800a000f04b88b4
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list