summaryrefslogtreecommitdiffstats
path: root/sub/sd_ass.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-24 00:29:01 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-26 20:39:04 +0200
commit304cafd31dfaeee853e138a460b7ba82e65ed420 (patch)
tree8c5945cccb2dfc34424f56f941120e4375108354 /sub/sd_ass.c
parenta248c2c7a137517061e6271f22b84d43bcd7191d (diff)
downloadmpv-304cafd31dfaeee853e138a460b7ba82e65ed420.tar.bz2
mpv-304cafd31dfaeee853e138a460b7ba82e65ed420.tar.xz
demux_mkv, chapters: change millisecond arithmetic to ns
demux_mkv kept various integer timestamps in millisecond units. Matroska timestamp arithmetic is however specified in nanoseconds (even though files typically use 1 ms precision), and using ms units instead of that only made things more complex. Based on the demux_mkv example the general demuxer-level chapter structure also used ms units. Change the demux_mkv arithmetic and demuxer chapter structures to use nanoseconds instead. This also fixes a seeking problem in demux_mkv with files using a TimecodeScale other than the usual 1000000 (confusion between ms and TimecodeScale*ns units).
Diffstat (limited to 'sub/sd_ass.c')
0 files changed, 0 insertions, 0 deletions