mirror of https://github.com/odrling/Aegisub
shift video instead of subtitles
This is probably wrong in some cases. This is probably what we want with matroska files.
This commit is contained in:
parent
9a0b9fceda
commit
c6c0e49877
|
@ -153,7 +153,6 @@ Framerate::Framerate(int64_t numerator, int64_t denominator, bool drop)
|
|||
|
||||
void Framerate::SetFromTimecodes() {
|
||||
validate_timecodes(timecodes);
|
||||
normalize_timecodes(timecodes);
|
||||
denominator = default_denominator;
|
||||
numerator = (timecodes.size() - 1) * denominator * 1000 / timecodes.back();
|
||||
last = (timecodes.size() - 1) * denominator * 1000;
|
||||
|
|
|
@ -2193,7 +2193,7 @@ found:
|
|||
|
||||
// recalculate this block's timecode to final timecode in ns
|
||||
timecode = mul3(mf->Tracks[tracknum]->TimecodeScale,
|
||||
(timecode - mf->firstTimecode + block_timecode) * mf->Seg.TimecodeScale);
|
||||
(timecode + block_timecode) * mf->Seg.TimecodeScale);
|
||||
|
||||
c = readch(mf);
|
||||
if (c==EOF)
|
||||
|
|
Loading…
Reference in New Issue