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

demux: avi: reject invalid dwRate/dwScale

parent 8c59fc7a
......@@ -460,6 +460,11 @@ static int Open( vlc_object_t * p_this )
tk->i_samplesize = p_strh->i_samplesize;
msg_Dbg( p_demux, "stream[%u] rate:%u scale:%u samplesize:%u",
i, tk->i_rate, tk->i_scale, tk->i_samplesize );
if( tk->i_scale > tk->i_rate )
{
free( tk );
continue;
}
switch( p_strh->i_type )
{
......
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