[vlc-commits] [Git][videolan/vlc][master] codec: lpcm: reject reserved channels count
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Sat Sep 5 17:00:26 UTC 2026
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
87311102 by François Cartegnie at 2026-09-05T18:51:10+02:00
codec: lpcm: reject reserved channels count
refs #29663
- - - - -
1 changed file:
- modules/codec/lpcm.c
Changes:
=====================================
modules/codec/lpcm.c
=====================================
@@ -1093,6 +1093,8 @@ static int WidiHeader( unsigned *pi_rate,
*pi_bits = 16;
*pi_channels = (p_header[3] & 0x7) + 1;
+ if( *pi_channels != 2 )
+ return -1;
*pi_original_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/873111021cfe098659363d78180007952eda4e86
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/873111021cfe098659363d78180007952eda4e86
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list