summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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);