Skip to content

Commit 661957e

Browse files
committed
Bug fix, if visibleRect is not set
1 parent a56f39c commit 661957e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/avcomponents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ export class AVOneFrameToManyScaler extends AVOneToMany {
993993
frame.close()
994994
return resframe
995995
}
996-
if (visibleRect.width === 1 && visibleRect.height === 1) {
996+
if (visibleRect?.width === 1 && visibleRect?.height === 1) {
997997
frame.close()
998998
return resframe
999999
}

0 commit comments

Comments
 (0)