[vlc-commits] mkv: removed unnecessary variable and cleaned up expression
Filip Roséen
git at videolan.org
Wed Mar 9 12:59:42 CET 2016
vlc | branch: master | Filip Roséen <filip at videolabs.io> | Wed Mar 9 12:50:06 2016 +0100| [dba3e1d08fed183d3e5e46967b249d0ebd78b80d] | committer: Jean-Baptiste Kempf
mkv: removed unnecessary variable and cleaned up expression
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dba3e1d08fed183d3e5e46967b249d0ebd78b80d
---
modules/demux/mkv/matroska_segment_parse.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index e7631e6..44202fb 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -862,8 +862,7 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
InfoHandlers::Dispatcher().iterate( m->begin(), m->end(), InfoHandlers::Payload( captures ) );
- double f_dur = double(i_duration) * double(i_timescale) / 1000000.0;
- i_duration = mtime_t(f_dur);
+ i_duration = mtime_t( static_cast<double>( i_duration * i_timescale ) / 10e5 );
if( !i_duration ) i_duration = -1;
}
More information about the vlc-commits
mailing list