Skip to content

Commit

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

const currentOrder = Math.sign(
nextSamplePTS - currentSamplePTS,
);
const prevOrder = Math.sign(nextSamplePTS - prevPTS);
const currentOrder = nextSamplePTS - currentSamplePTS < 0;
const prevOrder = nextSamplePTS - prevPTS < 0;

isPTSOrderRetained = currentOrder == prevOrder;
}
Expand Down

0 comments on commit ce34335

Please # to comment.