Skip to content

Commit

Permalink
Fix firefox better
Browse files Browse the repository at this point in the history
  • Loading branch information
Metalit committed Nov 17, 2024
1 parent 2f54b07 commit 8729f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/decoder_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ self.onmessage = (event: MessageEvent) => {
const chunk = new EncodedVideoChunk({
data: array,
timestamp: 0,
type: array[4] === 101 ? "key" : "delta",
type: (array[4] === 101 || array[4] === 103) ? "key" : "delta",
});
decoder.decode(chunk);
} else console.log("skipping chunk!");
Expand Down

0 comments on commit 8729f8c

Please sign in to comment.