[vlc-devel] commit: Fixed a harmless typo (avformat). (Laurent Aimar )
git version control
git at videolan.org
Sat Feb 20 14:13:07 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 20 14:07:16 2010 +0100| [80db30df18c28f40756ffe31d6f6eaac5d97c509] | committer: Laurent Aimar
Fixed a harmless typo (avformat).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80db30df18c28f40756ffe31d6f6eaac5d97c509
---
modules/demux/avformat/demux.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 0309fb8..c407813 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:
More information about the vlc-devel
mailing list