Merge "Camera: Fix max video size for external camera"
This commit is contained in:
committed by
Android (Google) Code Review
commit
aa757543f4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user