1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Added potential fix for Android H264 Encoding Bug

This commit is contained in:
Alexander Lyulkov
2024-06-05 19:17:49 +03:00
parent 92b588f30b
commit 99f32f17b4
@@ -587,6 +587,7 @@ public:
LOGE("ERROR: AMediaCodec_createInputSurface (%d)", status);
goto error;
}
ANativeWindow_setBuffersGeometry(surface, width, height, AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM);
#endif
AMediaCodec_start(encoder);