Commit 51390d73 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix fpe (#19688)

parent 71bf8f0a
......@@ -1847,7 +1847,8 @@ static mtime_t AVI_GetDPTS( avi_track_t *tk, int64_t i_count )
if( !tk->i_rate )
return i_dpts;
i_dpts = AVI_Rescale( CLOCK_FREQ * i_count, tk->i_rate, tk->i_scale );
if( tk->i_scale )
i_dpts = AVI_Rescale( CLOCK_FREQ * i_count, tk->i_rate, tk->i_scale );
if( tk->i_samplesize )
{
......
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