Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fadri1 committed Jan 10, 2024
1 parent dcf1ac3 commit 9ef3ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/beamcoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class BeamcoderExtractor extends BaseExtractor implements Extractor {

// The packet contains frames, but all of them have PTS larger than our a targetPTS (we looked too far)
if (!closestFrame) {
return outputFrame || (filteredFrames.reduce((nearest, current) => (Math.abs(current.pts - targetPTS) < Math.abs(nearest.pts - targetPTS) ? current : nearest), filteredFrames[0]) ?? null);
return outputFrame || (filteredFrames.reduce((nearest, current) => (Math.abs(current.pts - targetPTS) < Math.abs(nearest.pts - targetPTS) ? current : nearest), filteredFrames[0]) || null);
}

// store the filtered packet frames for later reuse
Expand Down

0 comments on commit 9ef3ae1

Please sign in to comment.