From: Thomas Guillem Date: Wed, 11 Sep 2024 06:16:36 +0000 (+0200) Subject: packetizer: dts: check for frame_size for the first sync X-Git-Tag: archive/raspbian/3.0.21-6+rpi1^2~95 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=768bd9b80332698c52e641b7abd2042e2c1b067f;p=vlc.git packetizer: dts: check for frame_size for the first sync Only substreams are allowed to have a frame_size of 0. (cherry picked from commit 16b31aa57e3919dbe661c213868dee4b8bc1e3bd) Signed-off-by: Thomas Guillem Gbp-Pq: Name 0030-packetizer-dts-check-for-frame_size-for-the-first-sy.patch --- diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c index a57c6989..5d0deb4e 100644 --- a/modules/packetizer/dts.c +++ b/modules/packetizer/dts.c @@ -205,7 +205,8 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block ) /* Check if frame is valid and get frame info */ if( vlc_dts_header_Parse( &p_sys->first, p_header, - VLC_DTS_HEADER_SIZE ) != VLC_SUCCESS ) + VLC_DTS_HEADER_SIZE ) != VLC_SUCCESS + || p_sys->first.i_frame_size == 0 ) { msg_Dbg( p_dec, "emulated sync word" ); block_SkipByte( &p_sys->bytestream );