Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Oct 8, 2023
1 parent 11da8bf commit f104ded
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/decode-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function decodeImageVideoFrame(
}
return decodeParsedImage(img.width, img.height, encoding, data);
} catch (e) {
if (canceled) return null as any as DemTile;
// fall back to offscreen canvas
return decodeImageUsingOffscreenCanvas(img, encoding);
} finally {
Expand Down

0 comments on commit f104ded

Please sign in to comment.