Browse Source

demux: voc: limit the maximum sampling rate to 768000

Ref. #28978
pull/185/head
Steve Lhomme 1 year ago
parent
commit
dd8256bfdb
  1. 2
      modules/demux/voc.c

2
modules/demux/voc.c

@ -350,7 +350,7 @@ static int ReadBlockHeader( demux_t *p_demux )
goto corrupt;
new_fmt.audio.i_rate = GetDWLE( buf );
if( !new_fmt.audio.i_rate )
if( new_fmt.audio.i_rate == 0 || new_fmt.audio.i_rate > 768000 )
goto corrupt;
new_fmt.audio.i_bitspersample = buf[4];
new_fmt.audio.i_channels = buf[5];

Loading…
Cancel
Save