Merge "Camera: Fix max video size for external camera"

This commit is contained in:
TreeHugger Robot
2023-01-05 12:31:33 +00:00
committed by Android (Google) Code Review

View File

@@ -2429,7 +2429,7 @@ public final class MandatoryStreamCombination {
long minFrameDuration = mStreamConfigMap.getOutputMinFrameDuration(
android.media.MediaRecorder.class, sz);
// Give some margin for rounding error
if (minFrameDuration > (1e9 / 30.1)) {
if (minFrameDuration < (1e9 / 29.9)) {
Log.i(TAG, "External camera " + mCameraId + " has max video size:" + sz);
return sz;
}