Commit da80e5b3 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: dts: reject invalid parameters (fix #18000)

parent bdc690e9
......@@ -288,6 +288,10 @@ static int dts_header_ParseCore( vlc_dts_header_t *p_header,
p_header->i_frame_length = (i_nblks + 1) * 32;
p_header->i_original_channels = dca_get_channels( i_amode, b_lfe );
if( !p_header->i_rate || !p_header->i_frame_size ||
!p_header->i_frame_length || !p_header->i_original_channels )
return VLC_EGENERIC;
return VLC_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment