Commit bb222c8a 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
parent 83db4181
...@@ -261,6 +261,13 @@ static int Open( vlc_object_t *p_this ) ...@@ -261,6 +261,13 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC; 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 */ /* add the es */
p_sys->es = es_out_Add( p_demux->out, &p_sys->fmt ); 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