ncannasse 8 년 전
부모
커밋
10f80e395e
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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;