Commit 913ea76f authored by Ghislain MARY's avatar Ghislain MARY

Forgot callback buffer allocation in workaround for video on Galaxy S3 mini.

parent d9d7e9e7
......@@ -74,6 +74,7 @@ public class AndroidVideoApi9JniWrapper {
Size size = params.getPreviewSize();
int bufferSize = (size.width * size.height * ImageFormat.getBitsPerPixel(params.getPreviewFormat())) / 8;
bufferSize += bufferSize / 20;
camera.addCallbackBuffer(new byte[bufferSize]);
} else if (AndroidVideoApi5JniWrapper.isRecording) {
AndroidVideoApi5JniWrapper.putImage(nativePtr, data);
camera.addCallbackBuffer(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment