changeset 19810:7dfc3d2bb54b

Fix block duration calculation in mkv demuxer. According to specs, BlockDuration value is based on TimecodeScale.
author eugeni
date Tue, 12 Sep 2006 21:40:01 +0000
parents 99d375aab4db
children ed853180b3b9
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Tue Sep 12 21:33:10 2006 +0000
+++ b/libmpdemux/demux_mkv.c	Tue Sep 12 21:40:01 2006 +0000
@@ -3488,6 +3488,7 @@
                     block_duration = ebml_read_uint (s, &l);
                     if (block_duration == EBML_UINT_INVALID)
                       return 0;
+                    block_duration *= mkv_d->tc_scale / 1000000.0;
                     break;
                   }