From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Smacker" |
|---|
| claim | "A Smacker file starts with the ASCII magic SMK2 or SMK4; FFmpeg's probe gives full score only if width and height (u32 at 4 and 8) are at most 32768, otherwise a quarter score." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Smacker" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "53 4D 4B ??" |
|---|
| offset | 0 |
|---|
| meaning | "Smacker: SMK followed by 32 (2) or 34 (4)" |
|---|
| alternatives | | "53 4D 4B 32" |
| "53 4D 4B 34" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "smacker_probe compares AV_RL32 with MKTAG SMK2 / SMK4 and checks width, height <= 32768" |
|---|
| repo | "https://github.com/FFmpeg/FFmpeg" |
|---|
| commit | "c2bbf2b83d064313ca3739f81c651553cfbb26fb" |
|---|
| path | "libavformat/smacker.c" |
|---|
| lines | "82-92" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:51:07.119Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:58:01.985Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read smacker.c smacker_probe: AV_RL32(buf) must equal MKTAG SMK2 or SMK4, else score 0; width (buf+4) or height (buf+8) above 32768 gives AVPROBE_SCORE_MAX/4, otherwise the maximum" |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:46:40.593Z" |
|---|
| summary | "Add the two concrete magics SMK2 and SMK4 as data.alternatives." |
|---|
| changed | |
|---|
|
|
|---|