]> git.sesse.net Git - vlc/commitdiff
Fix warning
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Dec 2007 21:05:01 +0000 (21:05 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Dec 2007 21:05:01 +0000 (21:05 +0000)
modules/demux/mpeg/mpga.c

index c40ae1cf8f525bd77bdb5a2abea269e5acb3824d..a8416f94a034ebd4edb7450fd29fb6de670232d5 100644 (file)
@@ -360,8 +360,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
              * a raw approximation with time/position */
             if( i_ret && i_query == DEMUX_GET_LENGTH &&!p_sys->i_bitrate_avg )
             {
-                float f_pos = (double)( stream_Tell( p_demux->s ) ) /
-                              (double)( stream_Size( p_demux->s ) );
+                float f_pos = (double)(uint64_t)( stream_Tell( p_demux->s ) ) /
+                              (double)(uint64_t)( stream_Size( p_demux->s ) );
                 /* The first few seconds are guaranteed to be very whacky,
                  * don't bother trying ... Too bad */
                 if( f_pos < 0.01 ||