From: Thomas Guillem Date: Wed, 11 Sep 2024 06:15:52 +0000 (+0200) Subject: dts_header: initialize SUBSTREAM_LBR size to 0 X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~97 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4cacc79ca56b0487750f03b4537961f1ea0d9434;p=vlc.git dts_header: initialize SUBSTREAM_LBR size to 0 It's a substream and can't work alone, so a size of 0 is legitimate. Fixes #28773 (Use of uninitialised value) (cherry picked from commit b23f09b258dc63c2221af502ec856630f68817e5) Signed-off-by: Thomas Guillem Gbp-Pq: Name 0029-dts_header-initialize-SUBSTREAM_LBR-size-to-0.patch --- diff --git a/modules/packetizer/dts_header.c b/modules/packetizer/dts_header.c index 53249dd6..8d6d5c83 100644 --- a/modules/packetizer/dts_header.c +++ b/modules/packetizer/dts_header.c @@ -342,6 +342,7 @@ static int dts_header_ParseLBRExtSubstream( vlc_dts_header_t *p_header, bs_skip( &s, 16 ); uint16_t nLBRScaledBitRate_LSW = bs_read( &s, 16 ); p_header->i_bitrate = nLBRScaledBitRate_LSW | ((nLBRBitRateMSnybbles & 0xF0) << 12); + p_header->i_frame_size = 0; return VLC_SUCCESS; }