Skip to content

Commit

Permalink
Default stride in VideoFrame to 0 (#403)
Browse files Browse the repository at this point in the history
* Default stride in VideoFrame to 0

* Create loud-bugs-agree.md
  • Loading branch information
lukasIO authored Jan 28, 2025
1 parent c5bc864 commit 6e86db4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-bugs-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/rtc-node": patch
---

Default stride in VideoFrame to 0
2 changes: 2 additions & 0 deletions packages/livekit-rtc/src/video_frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export class VideoFrame {
case VideoBufferType.RGB24:
info.stride = this.width * 3;
break;
default:
info.stride = 0;
}

info.components.push(...getPlaneInfos(this.dataPtr, this.type, this.width, this.height));
Expand Down

0 comments on commit 6e86db4

Please sign in to comment.