From: Christophe CURIS <[email protected]>
To fix the aspect rule (kernel coding style: no spaces in [x]), the patch
by David broke the alignment that made code a little bit more readable, so
I propose to merge this quick fix to his commit: it keeps his apsect fix,
but re-adds alignment in another way.
---
wrlib/load.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wrlib/load.c b/wrlib/load.c
index d67a6ec..fb99876 100644
--- a/wrlib/load.c
+++ b/wrlib/load.c
@@ -377,8 +377,8 @@ static WRImgFormat identFile(const char *path)
return IM_GIF;
/* check for WEBP */
- if (buffer[0] == 'R' && buffer[1] == 'I' && buffer[2] == 'F' &&
buffer[3] == 'F' &&
- buffer[8] == 'W' && buffer[9] == 'E' && buffer[10] == 'B' &&
buffer[11] == 'P' &&
+ if (buffer[0] == 'R' && buffer[1] == 'I' && buffer[2] == 'F' &&
buffer[3] == 'F' &&
+ buffer[8] == 'W' && buffer[9] == 'E' && buffer[10] == 'B' &&
buffer[11] == 'P' &&
buffer[12] == 'V' && buffer[13] == 'P' && buffer[14] == '8' &&
(buffer[15] == ' ' /* Simple File Format (Lossy) */
|| buffer[15] == 'L' /* Simple File Format (Lossless) */
--
1.9.2
--
To unsubscribe, send mail to [email protected].