video: initialize fps range using first value given by the hardware
This commit is contained in:
parent
7bd4a7f7ef
commit
e37088be43
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public abstract class AndroidCameraRecord implements AutoFocusCallback {
|
|||
private int[] findClosestFpsRange(int expectedFps, List<int[]> fpsRanges) {
|
||||
Log.d("Searching for closest fps range from ",expectedFps);
|
||||
int measure = Integer.MAX_VALUE;
|
||||
int[] closestRange = {expectedFps,expectedFps};
|
||||
int[] closestRange = fpsRanges.get(0);
|
||||
for (int[] curRange : fpsRanges) {
|
||||
if (curRange[0] > expectedFps || curRange[1] < expectedFps) continue;
|
||||
int curMeasure = Math.abs(curRange[0] - expectedFps)
|
||||
|
|
Loading…
Reference in a new issue