Add all 4 standard HEIC brand file signature, ftypheic & ftypheix is for single …
…image, ftyphevc & ftyphevx is for sequence image
Showing
1 changed file
with
5 additions
and
2 deletions
@@ -51,9 +51,12 @@ | @@ -51,9 +51,12 @@ | ||
51 | } | 51 | } |
52 | case 0x00: { | 52 | case 0x00: { |
53 | if (data.length >= 12) { | 53 | if (data.length >= 12) { |
54 | - //....ftypheic | 54 | + //....ftypheic ....ftypheix ....ftyphevc ....ftyphevx |
55 | NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(4, 8)] encoding:NSASCIIStringEncoding]; | 55 | NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(4, 8)] encoding:NSASCIIStringEncoding]; |
56 | - if ([testString isEqualToString:@"ftypheic"]) { | 56 | + if ([testString isEqualToString:@"ftypheic"] |
57 | + || [testString isEqualToString:@"ftypheix"] | ||
58 | + || [testString isEqualToString:@"ftyphevc"] | ||
59 | + || [testString isEqualToString:@"ftyphevx"]) { | ||
57 | return SDImageFormatHEIC; | 60 | return SDImageFormatHEIC; |
58 | } | 61 | } |
59 | } | 62 | } |
-
Please register or login to post a comment