Skip to content

Commit

Permalink
fix: Fix incorrect dimensions of YCbCr buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Mar 14, 2024
1 parent 3f49aa4 commit 8a190a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/ResizePlugin.mm
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ - (FrameBuffer*)convertYUV:(Frame*)frame toRGB:(vImageARGBType)targetType {
CVPixelBufferLockBaseAddress(pixelBuffer, kCVPixelBufferLock_ReadOnly);

vImage_Buffer sourceY = {.data = CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 0),
.width = CVPixelBufferGetHeightOfPlane(pixelBuffer, 0),
.width = CVPixelBufferGetWidthOfPlane(pixelBuffer, 0),
.height = CVPixelBufferGetHeightOfPlane(pixelBuffer, 0),
.rowBytes = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 0)};
vImage_Buffer sourceCbCr = {.data = CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 1),
.width = CVPixelBufferGetHeightOfPlane(pixelBuffer, 1),
.width = CVPixelBufferGetWidthOfPlane(pixelBuffer, 1),
.height = CVPixelBufferGetHeightOfPlane(pixelBuffer, 1),
.rowBytes = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 1)};

Expand Down

0 comments on commit 8a190a3

Please sign in to comment.