This commit is contained in:
Vanilagy
2025-01-02 23:31:06 +01:00
parent 60947168f9
commit a3f19f6f08
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -43,10 +43,10 @@ console.log(await input.getMimeType())
let videoTrack = await input.getPrimaryVideoTrack();
let audioTrack = await input.getPrimaryAudioTrack();
if (!(await videoTrack.canDecode())) {
if (!(await videoTrack?.canDecode())) {
videoTrack = null;
}
if (!(await audioTrack.canDecode())) {
if (!(await audioTrack?.canDecode())) {
audioTrack = null;
}