[vlc-commits] [Git][videolan/vlc][master] spectrogram: add assertion on sections
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 3 11:57:11 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
47b44f90 by Tristan Matthews at 2025-10-03T11:33:28+00:00
spectrogram: add assertion on sections
Fixes CID 1048734
Co-authored-by: Alexandre Janniaux <ajanni at videolabs.io>
- - - - -
1 changed file:
- modules/visualization/visual/effects.c
Changes:
=====================================
modules/visualization/visual/effects.c
=====================================
@@ -573,6 +573,9 @@ static int spectrometer_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
i_nb_bands *= i_sections;
+ if( i_sections <= 0 )
+ vlc_assert_unreachable();
+
for ( i = 0 ; i< i_nb_bands/i_sections ;i++)
{
/* We search the maximum on one scale */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47b44f902ed0669a28db99f1a2dc64cc2501f175
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47b44f902ed0669a28db99f1a2dc64cc2501f175
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