From: Laurent Aimar Date: Sat, 20 Feb 2010 13:07:16 +0000 (+0100) Subject: Fixed a harmless typo (avformat). X-Git-Tag: 1.1.0-pre1~808 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=80db30df18c28f40756ffe31d6f6eaac5d97c509;p=vlc Fixed a harmless typo (avformat). --- 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: