Commit 3d32959f authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: change broken rate test

Solves regression with rates < 1
Unsure what the original check was fixing.
refs #1162
parent 73a2988e
......@@ -462,7 +462,7 @@ 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 || !tk->i_scale || !tk->i_rate )
if( !tk->i_scale || !tk->i_rate || !(tk->i_rate * CLOCK_FREQ / tk->i_scale) )
{
free( tk );
continue;
......
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