fix: 修改 Gif 判断逻辑
This commit is contained in:
parent
5a93ab5645
commit
f1ab89dcfe
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue