From 94452e7784d42b7fd5b2544c7d0de47c7e432e58 Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Mon, 21 Dec 2015 12:28:10 +0100 Subject: [PATCH] add more debugging info to direct capture should help debugging #4899 closes #4941 //FREEBIE --- src/org/thoughtcrime/securesms/util/BitmapUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/util/BitmapUtil.java b/src/org/thoughtcrime/securesms/util/BitmapUtil.java index 409741a995..62b5363b67 100644 --- a/src/org/thoughtcrime/securesms/util/BitmapUtil.java +++ b/src/org/thoughtcrime/securesms/util/BitmapUtil.java @@ -192,7 +192,9 @@ public class BitmapUtil { if (rotation % 90 != 0 || rotation < 0 || rotation > 270) { throw new IllegalArgumentException("0 <= rotation < 360, rotation % 90 == 0"); } else if ((width * height * 3) / 2 != yuv.length) { - throw new IOException("provided width and height don't jive with the data length"); + throw new IOException("provided width and height don't jive with the data length (" + + yuv.length + "). Width: " + width + " height: " + height + + " = data length: " + (width * height * 3) / 2); } final byte[] output = new byte[yuv.length];