Commit Graph

7 Commits

Author SHA1 Message Date
odrling 9a25b906cb shift video instead of subtitles
This is probably wrong in some cases. This is probably what we want with
matroska files.
2021-01-07 17:52:34 +01:00
odrling 92f09f1445 fix mks file parsing 2020-12-22 02:37:46 +01:00
odrling 82afc56f6f fix mingw build 2020-11-19 00:42:39 +01:00
odrling ac3c4095f1 fix sub timing in mkv files with video delay
Some matroska files have audio start at timestamp 0 and video later.
In this case mkvtoolnix seems to use the first block of the first
cluster to the audio track (I would assume this is only an
implementation detail and not really from the matroska specs. And also
could happen in other cases without the video being delayed, but that's
not the point). Aegisub used to read this first block and use its
timestamp as the starting point of the video track.

With this commit, Aegisub tries to read all the blocks until it can read
the first timestamp of the video track and use it for the subtitles'
timestamps. Audio tracks don't seem to be impacted by these changes.
2020-11-17 18:45:25 +01:00
Thomas Goyne 5830fc4225 Don't limit CodecPrivate to 256KB 2014-05-20 09:46:58 -07:00
Thomas Goyne 3d76d583e1 Use stdint types in MatroskaParser 2014-03-23 09:01:25 -07:00
Thomas Goyne 33a4a056a4 Move everything up a level since the root dir no longer has stuff 2014-03-11 12:14:57 -07:00