]> git.sesse.net Git - vlc/commitdiff
Fixed a harmless typo (avformat).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 20 Feb 2010 13:07:16 +0000 (14:07 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 20 Feb 2010 13:11:25 +0000 (14:11 +0100)
modules/demux/avformat/demux.c

index 0309fb8d6ac55af51b9922d817c4fedaa884407e..c407813bc57035e28130ebea02c73ae6427e1509 100644 (file)
@@ -674,10 +674,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
         case DEMUX_GET_LENGTH:
             pi64 = (int64_t*)va_arg( args, int64_t * );
             if( p_sys->ic->duration != (int64_t)AV_NOPTS_VALUE )
-            {
-                *pi64 = p_sys->ic->duration;
-            }
-            else *pi64 = 0;
+                *pi64 = p_sys->ic->duration * 1000000 / AV_TIME_BASE;
+            else
+                *pi64 = 0;
             return VLC_SUCCESS;
 
         case DEMUX_GET_TIME: