summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-04-26 01:25:22 +0200
committerGravatar jonas <himself@jonasgunz.de> 2019-04-26 01:25:22 +0200
commitd5aef76ff4e96ed37792a32082930c43e2b881fc (patch)
tree6bee31a74eb1259958e8f9e116d177bc47ee4821 /src/main.c
parentdb4e0e4ac7edf3d06f6f371c4a30e20f31c7b8e0 (diff)
downloadheadstripper-d5aef76ff4e96ed37792a32082930c43e2b881fc.tar.gz
Added ignore patterns
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 06e7f41..68c1489 100644
--- a/src/main.c
+++ b/src/main.c
@@ -173,7 +173,8 @@ int strip_jpg(char *_filename)
}
else if(segment == _JPG_EXIF ||
segment == _JPG_COM ||
- segment == _JPG_COPY )
+ segment == _JPG_COPY ||
+ (((segment & 0xFFF0) == (_JPG_APP0 & 0xFFF0)) && ((segment & 0x000F) > 1)))
{
unsigned char l1 = fgetc(in);
unsigned char l2 = fgetc(in);