Merge "ExifInterface: Remove throwing exception" into oc-mr1-dev am: 48dad606c5

am: a0e00f5015

Change-Id: I03db88b452431a3ec454754bbb7eb99a43ee0356
This commit is contained in:
Jin Seok Park
2017-08-04 01:05:01 +00:00
committed by android-build-merger

View File

@@ -2102,9 +2102,7 @@ public class ExifInterface {
private int getMimeType(BufferedInputStream in) throws IOException {
in.mark(SIGNATURE_CHECK_SIZE);
byte[] signatureCheckBytes = new byte[SIGNATURE_CHECK_SIZE];
if (in.read(signatureCheckBytes) != SIGNATURE_CHECK_SIZE) {
throw new EOFException();
}
in.read(signatureCheckBytes);
in.reset();
if (isJpegFormat(signatureCheckBytes)) {
return IMAGE_TYPE_JPEG;