[vlc-commits] [Git][videolan/vlc][master] demux: mp4: fix potential signed overflow
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Apr 4 13:06:57 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d346f1fb by François Cartegnie at 2026-04-04T12:52:11+00:00
demux: mp4: fix potential signed overflow
We don't care about truncation since this is informative only
refs #29730
- - - - -
1 changed file:
- modules/demux/mp4/essetup.c
Changes:
=====================================
modules/demux/mp4/essetup.c
=====================================
@@ -895,7 +895,7 @@ int SetupAudioES( demux_t *p_demux, const mp4_track_t *p_track,
if( p_soun->i_qt_version == 0 ) /* otherwise defaults to meaningless 16 */
{
p_fmt->audio.i_bitspersample = p_soun->i_samplesize;
- p_fmt->i_bitrate = p_soun->i_channelcount * p_soun->i_sampleratehi *
+ p_fmt->i_bitrate = (unsigned) p_soun->i_channelcount * p_soun->i_sampleratehi *
p_soun->i_samplesize;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d346f1fbe6eebae170b771309d331e937bb6b4d1
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d346f1fbe6eebae170b771309d331e937bb6b4d1
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list