{"success":true,"data":{"ext":"aac","name":"MPEG-4 Advanced Audio Coding","description":"MPEG-4 Advanced Audio Coding (AAC) is a lossy audio coding format defined by the Moving Picture Experts Group and standardized by ISO/IEC as part of the MPEG-4 suite. It is used for music distribution, digital broadcasting, streaming media, mobile devices, and general-purpose audio playback. AAC files are generally safe to handle, although any media file can be used to conceal malformed data or exploit weaknesses in poorly implemented decoders.","mime":["audio/aac"],"risk_level":"Safe","signatures":[{"hex":"FF F1","offset":0,"sources":[{"name":"ISO/IEC 14496-3 ADTS syncword","url":"https://wiki.multimedia.cx/index.php/ADTS"}]},{"hex":"FF F9","offset":0,"sources":[{"name":"ISO/IEC 14496-3 ADTS syncword","url":"https://wiki.multimedia.cx/index.php/ADTS"}]},{"hex":"49 44 33","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["mp3","ac3","aif","aifc","aiff","amr"],"usage":{"python":"def is_aac(file_path: str) -> bool:\n    \"\"\"Check if file is a valid AAC by magic bytes.\"\"\"\n    signature = bytes([0xFF, 0xF1])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isAAC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0xF1]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsAAC(data []byte) bool {\n    signature := []byte{0xFF, 0xF1}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Audio"}}