Explorar o código

stb_image: JPEG: Provide failure reason for unknown marker

Jeremy Sawicki %!s(int64=8) %!d(string=hai) anos
pai
achega
f5f7dc02a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stb_image.h

+ 1 - 1
stb_image.h

@@ -2917,7 +2917,7 @@ static int stbi__process_marker(stbi__jpeg *z, int m)
       stbi__skip(z->s, stbi__get16be(z->s)-2);
       return 1;
    }
-   return 0;
+   return stbi__err("unknown marker","Corrupt JPEG");
 }
 
 // after we see SOS