We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d6439 commit a7e62d4Copy full SHA for a7e62d4
src/AudioTools/AudioCodecs/MP4Parser.h
@@ -310,7 +310,7 @@ class MP4Parser {
310
311
bool isValidType(const char* type, int offset=0) const {
312
// Check if the type is a valid 4-character string
313
- return (type != nullptr && strlen(type) == 4 &&
+ return (type != nullptr &&
314
isalnum(type[offset]) && isalnum(type[offset+1]) &&
315
isalnum(type[offset+2]) && isalnum(type[offset+3]));
316
}
0 commit comments