shithub: jxl

Download patch

ref: 0184094beffb581a783c037aadbb4301c4e85f71
parent: 8b780e3e59ec287937c5754521329840a69b28ee
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Aug 17 14:22:24 EDT 2023

fix indentation

--- a/decode.c
+++ b/decode.c
@@ -68,19 +68,19 @@
 		Bprint(b, "%11s %11d %11d %11d %11d ", "a8r8g8b8", 0, 0, pixels.width, pixels.height);
 		for(y = 0; y < pixels.height; ++y){
 			p = (u8int*)j40_row_u8x4(pixels, y);
-        	for(n = 0; n < 4*pixels.width; n += 4){
-        		x = p[n+0];
-        		p[n+0] = p[n+2];
-        		p[n+2] = x;
-        	}
-            Bwrite(b, p, 4*pixels.width);
-        }
-    }
+			for(n = 0; n < 4*pixels.width; n += 4){
+				x = p[n+0];
+				p[n+0] = p[n+2];
+				p[n+2] = x;
+			}
+			Bwrite(b, p, 4*pixels.width);
+		}
+	}
 
-    if(j40_error(&image))
-    	sysfatal("%s", j40_error_string(&image));
+	if(j40_error(&image))
+		sysfatal("%s", j40_error_string(&image));
 
-    j40_free(&image);
+	j40_free(&image);
 	Bterm(b);
 
 	threadexitsall(nil);