[vlc-commits] [Git][videolan/vlc][3.0.x] codec: lpcm: reject reserved channels count
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Sep 4 11:05:25 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
19079638 by François Cartegnie at 2026-09-04T10:56:23+00: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/190796386275da48f60d06a0fcaf183006a5e964
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/190796386275da48f60d06a0fcaf183006a5e964
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