android/ndk_camera: Fix rotation

`width` and `height` are not necessarily swapped at this point
This commit is contained in:
zhupengfei 2020-05-04 13:00:35 +08:00 committed by bunnei
parent 8a7dacb9c7
commit 7d93f46a03

View File

@ -382,7 +382,7 @@ std::vector<u16> Interface::ReceiveFrame() {
std::swap(width, height);
}
YUVImage rotated(width, height);
libyuv::I420Rotate(YUV(converted), YUV(rotated), height, width,
libyuv::I420Rotate(YUV(converted), YUV(rotated), converted.width, converted.height,
static_cast<libyuv::RotationMode>(rotation));
converted.Clear();