Skip to content

Commit 2193b50

Browse files
authored
Fix #1984
1 parent a88be08 commit 2193b50

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/media/AvfMediaEngine.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,6 @@ - (void)observeValueForKeyPath:(NSString*)keyPath
400400
auto UVDataLen = UVPitch * UVHeight; // 1920x1080: UVDataLen=1036800
401401
auto frameYData = (uint8_t*)CVPixelBufferGetBaseAddressOfPlane(videoFrame, 0);
402402
auto frameCbCrData = (uint8_t*)CVPixelBufferGetBaseAddressOfPlane(videoFrame, 1);
403-
assert(_videoRotation % 180 == 0 ? YASIO_SZ_ALIGN(videoDim.x, 32) * videoDim.y * 3 / 2 == YDataLen + UVDataLen :
404-
YASIO_SZ_ALIGN(videoDim.y, 32) * videoDim.x * 3 / 2 == YDataLen + UVDataLen);
405403
// Apple: both H264, HEVC(H265) bufferDimX=ALIGN(videoDim.x, 32), bufferDimY=videoDim.y
406404
// Windows:
407405
// - H264: BufferDimX align videoDim.x with 16, BufferDimY as-is

0 commit comments

Comments
 (0)