ncannasse 8 ani în urmă
părinte
comite
10f80e395e
1 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 4 3
      hxd/res/NanoJpeg.hx

+ 4 - 3
hxd/res/NanoJpeg.hx

@@ -493,10 +493,11 @@ class NanoJpeg {
 			njSkip(2);
 		}
 		var start = get(0);
-		var count = get(0);
-		if( (!progressive && start != 0) || (count != 63 - start) || get(2) != 0 ) notSupported();
+		var count = get(1);
+		var other = get(2);
+		if( (!progressive && start != 0) || (count != 63 - start) || other != 0 ) notSupported();
 		njSkip(length);
-		
+
 		if( progressive ) throw "Unsupported progressive JPG";
 
 		var mbx = 0, mby = 0;