fix: 修改 Gif 判断逻辑

This commit is contained in:
HuanCheng65 2022-06-10 19:54:14 +08:00 committed by GitHub
parent 5a93ab5645
commit f1ab89dcfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class ImageUtil {
inputStream.skip(inputStream.available() - 1); inputStream.skip(inputStream.available() - 1);
flags[4] = inputStream.read(); flags[4] = inputStream.read();
inputStream.close(); inputStream.close();
return flags[0] == 71 && flags[1] == 73 && flags[2] == 70 && flags[3] == 56 && flags[4] == 0x3B; return flags[0] == 71 && flags[1] == 73 && flags[2] == 70;
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {