From 1afffc9b5d1cb5f5c763f65f7dd810a3b873f67e Mon Sep 17 00:00:00 2001 From: odrling Date: Thu, 7 Jan 2021 17:46:38 +0100 Subject: [PATCH] shift video instead of subtitles This is probably wrong in some cases. This is probably what we want with matroska files. --- src/MatroskaParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MatroskaParser.c b/src/MatroskaParser.c index 7d2e23a4e..048761c72 100644 --- a/src/MatroskaParser.c +++ b/src/MatroskaParser.c @@ -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)