Commit 3e05da4f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

avi: Fix a warning about bad function type cast.

parent 260dd07f
...@@ -2371,8 +2371,9 @@ static void AVI_IndexCreate( demux_t *p_demux ) ...@@ -2371,8 +2371,9 @@ static void AVI_IndexCreate( demux_t *p_demux )
if( dialog_ProgressCancelled( p_dialog ) ) if( dialog_ProgressCancelled( p_dialog ) )
break; break;
float f_pos = (float)stream_Tell( p_demux->s ) / double current = stream_Tell( p_demux->s );
(float)stream_Size( p_demux->s ); double size = stream_Size( p_demux->s );
double f_pos = current / size;
dialog_ProgressSet( p_dialog, NULL, f_pos ); dialog_ProgressSet( p_dialog, NULL, f_pos );
i_dialog_update = mdate(); i_dialog_update = mdate();
......
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