Skip to content

Commit 25b040a

Browse files
committed
Do not pass nonsense frames
1 parent 542900e commit 25b040a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/avcomponents.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,10 @@ export class AVOneFrameToManyScaler extends AVOneToMany {
993993
frame.close()
994994
return resframe
995995
}
996+
if (visibleRect.width === 1 && visibleRect.height === 1) {
997+
frame.close()
998+
return resframe
999+
}
9961000
if (!this.backgroundOff) {
9971001
const oldframe = frame
9981002
const { frame: newframe } = await this.backgroundRemover(oldframe)

0 commit comments

Comments
 (0)