]> git.sesse.net Git - vlc/commitdiff
* modules/access/fake.c: Fixed an integer overflow.
authorChristophe Massiot <massiot@videolan.org>
Wed, 21 Nov 2007 18:47:54 +0000 (18:47 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 21 Nov 2007 18:47:54 +0000 (18:47 +0000)
modules/access/fake.c

index 2e29b7d550bd9093b828281e6b94ca0703cb2ee9..b4a2cb1c20a21481efe79bf2b6ca59db7f5a7351 100644 (file)
@@ -102,7 +102,8 @@ static int Open( vlc_object_t *p_this )
     p_demux->info.i_title = 0;
     p_demux->info.i_seekpoint = 0;
 
-    p_sys->i_duration = var_CreateGetInteger( p_demux, "fake-duration" ) * 1000;
+    p_sys->i_duration =
+        (mtime_t)var_CreateGetInteger( p_demux, "fake-duration" ) * 1000;
     p_sys->f_fps = var_CreateGetFloat( p_demux, "fake-fps" );
 
     /* Declare the elementary stream */