diff --git a/core/media/AvfMediaEngine.mm b/core/media/AvfMediaEngine.mm index 8e80ab643553..4b5d75a9902b 100644 --- a/core/media/AvfMediaEngine.mm +++ b/core/media/AvfMediaEngine.mm @@ -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