From 80db30df18c28f40756ffe31d6f6eaac5d97c509 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 20 Feb 2010 14:07:16 +0100 Subject: [PATCH] Fixed a harmless typo (avformat). --- modules/demux/avformat/demux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index 0309fb8d6a..c407813bc5 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -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: -- 2.39.2