Skip to content

Commit a7e62d4

Browse files
committed
Fix broken type check
1 parent 83d6439 commit a7e62d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/AudioCodecs/MP4Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class MP4Parser {
310310

311311
bool isValidType(const char* type, int offset=0) const {
312312
// Check if the type is a valid 4-character string
313-
return (type != nullptr && strlen(type) == 4 &&
313+
return (type != nullptr &&
314314
isalnum(type[offset]) && isalnum(type[offset+1]) &&
315315
isalnum(type[offset+2]) && isalnum(type[offset+3]));
316316
}

0 commit comments

Comments
 (0)