Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 4, 2024
1 parent a793eb1 commit 2631051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/Renderer/YUVCanvasRenderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class YUVCanvasRenderer extends IRenderer {
uBuffer,
vBuffer,
rotation,
alphaBuffer,
}: VideoFrame) {
this.rotateCanvas({ width, height, rotation });
this.updateRenderMode();
Expand Down Expand Up @@ -51,7 +52,7 @@ export class YUVCanvasRenderer extends IRenderer {
stride: vStride,
}
);
frame.a = frame.alphaBuffer;
frame.a = alphaBuffer;
this.frameSink.drawFrame(frame);

super.drawFrame();
Expand Down

0 comments on commit 2631051

Please sign in to comment.