Only substreams are allowed to have a frame_size of 0.
(cherry picked from commit
16b31aa57e3919dbe661c213868dee4b8bc1e3bd)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0030-packetizer-dts-check-for-frame_size-for-the-first-sy.patch
/* 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 );