diff options
-rwxr-xr-x[-rw-r--r--] | src/com/android/camera/VideoModule.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 698e76ff9..3c2b3541a 100644..100755 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -840,9 +840,9 @@ public class VideoModule implements CameraModule, if(!("off".equals(HighFrameRate)) && !("hsr".equals(HighFrameRate))) { Size size = null; try { - if (isSupported(HighFrameRate, mParameters.getSupportedVideoHighFrameRateModes())) { + if (isSupported(HighFrameRate.substring(3), mParameters.getSupportedVideoHighFrameRateModes())) { int index = mParameters.getSupportedVideoHighFrameRateModes().indexOf( - HighFrameRate); + HighFrameRate.substring(3)); size = mParameters.getSupportedHfrSizes().get(index); } else { return false; @@ -861,7 +861,7 @@ public class VideoModule implements CameraModule, return false; } - int hfrFps = Integer.parseInt(HighFrameRate); + int hfrFps = Integer.parseInt(HighFrameRate.substring(3)); int inputBitrate = videoWidth * videoHeight * hfrFps; boolean supported = false; |