From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:MPEG audio" |
|---|
| claim | "ID3v2 header is 10 bytes ("ID3", version, revision, flags, 4-byte synchsafe size); a header flag 0x10 (footer) adds another 10 bytes to the tag length. The frame format flags FFmpeg tests are the ID3v2.4 bit layout: 0x0001 data length indicator, 0x0002 unsynchronisation, 0x0004 encryption, 0x0008 compression; it uses the same masks for v2.3 frames (whose specification layout differs: Unverified, from the specification, not read here) and v2.2 frames have no flag field." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:MPEG audio" |
|---|
| observed_in | |
|---|
|
|---|
| data | | description | "ID3v2 header size and frame format flag bits" |
|---|
| trigger | "file starts with 49 44 33" |
|---|
| effect | "skip header size + 10 bytes (plus footer if flagged) before the first audio frame" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ID3v2_HEADER_SIZE 10, ID3v2_DEFAULT_MAGIC "ID3" and ID3v2_FLAG_* defines" |
|---|
| repo | "https://github.com/FFmpeg/FFmpeg" |
|---|
| commit | "7045cc9b8020ebaae156f4947baa752625056f90" |
|---|
| path | "libavformat/id3v2.h" |
|---|
| lines | "30-40" |
|---|
|
| type | "source" |
|---|
| detail | "Read ff_id3v2_tag_len (buf[5] & 0x10 adds 10) and the frame loop: tflags read for isv34 (versions 3 and 4) only, then tested with ID3v2_FLAG_UNSYNCH/DATALEN/COMPRESSION/ENCRYPTION; encrypted frames are skipped and compressed ones too without zlib." |
|---|
| repo | "https://github.com/FFmpeg/FFmpeg" |
|---|
| commit | "7045cc9b8020ebaae156f4947baa752625056f90" |
|---|
| path | "libavformat/id3v2.c" |
|---|
| lines | "165-175, 870-985" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ID3v2 header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T18:32:28.228Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:28:13.804Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read FFmpeg id3v2.h 28-40 and id3v2.c 160-180 at 7045cc9; grep of tflags/isv34 in id3v2.c lines 850-985 (tflags read only for isv34, same masks for v3 and v4). The frame loop was only grepped, not read line by line." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T04:48:46.690Z" |
|---|
| summary | "The frame flag values are ID3v2.4's layout, which FFmpeg also applies to v2.3 frames; v2.2 frames have no flags. Footer flag 0x10 adds 10 bytes. Read id3v2.c 165-175, 870-985." |
|---|
| changed | |
|---|
|
|
|---|