From b1b5985c2a02efe95dde19eb2e84ca07e450c61e Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 22 May 2021 18:41:49 +0200 Subject: [PATCH] Revert some unwanted changes. --- MP42/muxer/MatroskaParser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MP42/muxer/MatroskaParser.c b/MP42/muxer/MatroskaParser.c index 32c04ce..c1f418c 100644 --- a/MP42/muxer/MatroskaParser.c +++ b/MP42/muxer/MatroskaParser.c @@ -121,7 +121,7 @@ struct QueueEntry { unsigned int Length; char *Data; - longlong Start; + ulonglong Start; ulonglong End; ulonglong Position; @@ -2387,7 +2387,7 @@ static void parseBlockAdditions(MatroskaFile *mf, ulonglong toplen, struct Queue ENDFOR(mf); } -static void parseBlockGroup(MatroskaFile *mf,ulonglong toplen,longlong timecode, int blockex) { +static void parseBlockGroup(MatroskaFile *mf,ulonglong toplen,ulonglong timecode, int blockex) { ulonglong v; ulonglong duration = 0; ulonglong dpos; @@ -2441,7 +2441,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 - mf->firstTimecode + block_timecode) * mf->Seg.TimecodeScale); c = readch(mf); if (c==EOF)