Decoding gif failure #1634
-
Hello. I want to use stbi decode gif. These is my code.
I find some gif files could be decoded successfully but some failed. I find ffmpeg could decodecd all gif file successfully andIt will not return directly in the case above. So is this a stbi bug? This is a test file which will be decoded failed by stbi |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I mean, it could be a bug in stbi, but more likely it's the encoder violating the spec. See for example #1222 (comment) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your reply! |
Beta Was this translation helpful? Give feedback.
-
Kind of a hilarious way of saying it with more words. Good entertainment. Where it reads -
I won't say it like that. There are better ways to say it in short. To balance it with the other party, the consumer of the free libraries. If you didn't check it, it's programmer error. But if you checked the magic bytes with stb set of libraries, and then it failed. While other software does not fail. Use whatever works for you. Song, If your end goal is using a set of stb libraries I won't be able to help otherwise feel free to get in contact. My name - Manish (yeah I know. I hate signing comments but everyone does shameless self adverts in public, face to face and on here. It is one of many life's bare necessities) |
Beta Was this translation helpful? Give feedback.
I mean, it could be a bug in stbi, but more likely it's the encoder violating the spec. See for example #1222 (comment)