[vlc-commits] [Git][videolan/vlc][3.0.x] real: really fix FPE

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Mar 17 14:37:26 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
a1344b62 by Thomas Guillem at 2026-03-17T14:06:54+00:00
real: really fix FPE

corrected version of 3f8a631f4e47ec8343cef6e9c4d114c4b141fb23

Because 1/2 = 0 ...

- - - - -


1 changed file:

- modules/demux/real.c


Changes:

=====================================
modules/demux/real.c
=====================================
@@ -697,7 +697,7 @@ static void DemuxAudioMethod1( demux_t *p_demux, real_track_t *tk, vlc_tick_t i_
     }
     else
     {
-        const int y = tk->i_subpacket_h > 0 ?
+        const int y = tk->i_subpacket_h > 1 ?
                       tk->i_subpacket / (tk->i_subpacket_h / 2) : 0;
         assert( tk->fmt.i_codec == VLC_CODEC_RA_288 );
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a1344b6288d4d39da150d098d67618d4a14b1edf

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a1344b6288d4d39da150d098d67618d4a14b1edf
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