diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-12 21:40:01 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-12 21:40:01 +0000 |
commit | ee0ac67094f740c5db1eb714f0aee299921963fd (patch) | |
tree | 8c2d3b926c5f2eb7f7a9e56f3e10e5f0b6777815 /libmpdemux | |
parent | 3f1e7dd9a8dacde060e50974b5b3485fbb40dab6 (diff) |
Fix block duration calculation in mkv demuxer.
According to specs, BlockDuration value is based on TimecodeScale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19816 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index a666a8f06d..1519995cec 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -3488,6 +3488,7 @@ demux_mkv_fill_buffer (demuxer_t *demuxer, demux_stream_t *ds) block_duration = ebml_read_uint (s, &l); if (block_duration == EBML_UINT_INVALID) return 0; + block_duration *= mkv_d->tc_scale / 1000000.0; break; } |