[vlc-devel] commit: avi: Fix a warning about bad function type cast. (Pierre d' Herbemont )
git version control
git at videolan.org
Thu Aug 20 14:28:33 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Aug 20 12:22:00 2009 +0200| [3e05da4f7976253ee99699de80340d9d045e0554] | committer: Pierre d'Herbemont
avi: Fix a warning about bad function type cast.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e05da4f7976253ee99699de80340d9d045e0554
---
modules/demux/avi/avi.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 6f91eba..683070d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -2371,8 +2371,9 @@ static void AVI_IndexCreate( demux_t *p_demux )
if( dialog_ProgressCancelled( p_dialog ) )
break;
- float f_pos = (float)stream_Tell( p_demux->s ) /
- (float)stream_Size( p_demux->s );
+ double current = stream_Tell( p_demux->s );
+ double size = stream_Size( p_demux->s );
+ double f_pos = current / size;
dialog_ProgressSet( p_dialog, NULL, f_pos );
i_dialog_update = mdate();
More information about the vlc-devel
mailing list