Commit 21f68b99 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

AU: fix division by 0 with corrupted files

Reported by Marcin 'Icewall' Noga from Hispasec
(cherry picked from commit bb222c8a9b0a4b89cfd6aa1ad230fe8bfdaa6c7b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e0bfcce8
......@@ -261,6 +261,13 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
if( p_sys->fmt.audio.i_rate == 0 )
{
msg_Err( p_demux, "invalid samplerate: 0" );
free( p_sys );
return VLC_EGENERIC;
}
/* add the es */
p_sys->es = es_out_Add( p_demux->out, &p_sys->fmt );
......
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