Skip to content

Commit

Permalink
fix: Fix chooseCodecsAndFilterManifest for similar frameRate (shaka-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and Rodolphe Breton committed Nov 30, 2023
1 parent 6ae0844 commit 9c94fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ shaka.util.StreamUtils = class {
const validVideoIds = [];
const validVideoStreamsMap = new Map();
const getVideoGroupId = (stream) => {
return (stream.frameRate || 0) + (stream.hdr || '');
return Math.round(stream.frameRate || 0) + (stream.hdr || '');
};
for (const stream of videoStreams) {
const groupId = getVideoGroupId(stream);
Expand Down

0 comments on commit 9c94fd3

Please sign in to comment.