Removed +1 from frame byte return (#205)

pull/222/head
Siavash Sakhavi 7 years ago committed by Mattia Iavarone
parent f6b2506ecf
commit 86c3eae957
  1. 2
      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);
}
}

Loading…
Cancel
Save