Added potential fix for Android H264 Encoding Bug

pull/25716/head
Alexander Lyulkov 5 months ago
parent 92b588f30b
commit 99f32f17b4
  1. 1
      modules/videoio/src/cap_android_mediandk.cpp

@ -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);

Loading…
Cancel
Save