diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/FrameManager.java b/cameraview/src/main/java/com/otaliastudios/cameraview/FrameManager.java index d192de2a..7f9675ff 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/FrameManager.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/FrameManager.java @@ -88,6 +88,6 @@ class FrameManager { private int getBufferSize(int bitsPerPixel, Size previewSize) { long sizeInBits = previewSize.getHeight() * previewSize.getWidth() * bitsPerPixel; - return (int) Math.ceil(sizeInBits / 8.0d) + 1; + return (int) Math.ceil(sizeInBits / 8.0d); } }