Skip to content

Commit

Permalink
Fix #1984
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored Jun 18, 2024
1 parent a88be08 commit 2193b50
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/media/AvfMediaEngine.mm
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,6 @@ - (void)observeValueForKeyPath:(NSString*)keyPath
auto UVDataLen = UVPitch * UVHeight; // 1920x1080: UVDataLen=1036800
auto frameYData = (uint8_t*)CVPixelBufferGetBaseAddressOfPlane(videoFrame, 0);
auto frameCbCrData = (uint8_t*)CVPixelBufferGetBaseAddressOfPlane(videoFrame, 1);
assert(_videoRotation % 180 == 0 ? YASIO_SZ_ALIGN(videoDim.x, 32) * videoDim.y * 3 / 2 == YDataLen + UVDataLen :
YASIO_SZ_ALIGN(videoDim.y, 32) * videoDim.x * 3 / 2 == YDataLen + UVDataLen);
// Apple: both H264, HEVC(H265) bufferDimX=ALIGN(videoDim.x, 32), bufferDimY=videoDim.y
// Windows:
// - H264: BufferDimX align videoDim.x with 16, BufferDimY as-is
Expand Down

0 comments on commit 2193b50

Please sign in to comment.