Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Asen-O-Nikolov committed Jan 26, 2024
1 parent ce34335 commit 0bf87d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remux/mp4-remuxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ export default class MP4Remuxer implements Remuxer {
const nextSamplePTS = inputSamples[i + 1].pts;
const currentSamplePTS = inputSamples[i].pts;

const currentOrder = nextSamplePTS - currentSamplePTS < 0;
const prevOrder = nextSamplePTS - prevPTS < 0;
const currentOrder = nextSamplePTS - currentSamplePTS <= 0;
const prevOrder = nextSamplePTS - prevPTS <= 0;

isPTSOrderRetained = currentOrder == prevOrder;
}
Expand Down

0 comments on commit 0bf87d8

Please # to comment.