mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 12:11:52 +00:00
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
This commit is contained in:
parent
3f1e7dd9a8
commit
ee0ac67094
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user