Merge pull request #25716 from alexlyulkov:al/mediandk-fix

Added potential fix for Android H264 Encoding Bug
pull/25723/head
Alexander Smorkalov 5 months ago committed by GitHub
commit a5d9c29b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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