MCPcopy Create free account
hub / github.com/DentonW/DevIL / iCheckMp3

Function iCheckMp3

DevIL/src-IL/src/il_mp3.cpp:126–134  ·  view source on GitHub ↗

Internal function used to check if the HEADER is a valid MP3 header.

Source from the content-addressed store, hash-verified

124
125// Internal function used to check if the HEADER is a valid MP3 header.
126ILboolean iCheckMp3(MP3HEAD *Header)
127{
128 if (strncmp(Header->Signature, "ID3", 3))
129 return IL_FALSE;
130 if (Header->VersionMajor != 3 && Header->VersionMinor != 4)
131 return IL_FALSE;
132
133 return IL_TRUE;
134}
135
136
137ILuint iFindMp3Pic(MP3HEAD *Header)

Callers 2

iIsValidMp3Function · 0.85
iLoadMp3InternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected