Commit 54bbfac2 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: fix heap read ofw in extra bytes

parent 56e71fe5
......@@ -1024,7 +1024,7 @@ static int DemuxInit( demux_t *p_demux )
if( p_sp->i_type_specific_data_length > sizeof( WAVEFORMATEX ) &&
i_format != WAVE_FORMAT_MPEGLAYER3 &&
i_format != WAVE_FORMAT_MPEG )
i_format != WAVE_FORMAT_MPEG && i_data >= 19 )
{
GET_CHECKED( fmt.i_extra, __MIN( GetWLE( &p_data[16] ),
p_sp->i_type_specific_data_length -
......
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