nx_mp4_probe.nx
buildroot/runtime/nx_mp4_probe.nx
about
nx_mp4_probe.nx -- SOVEREIGN MP4/fMP4 box-tree validator (no ffmpeg, no strings|grep). Walks the
ISO-BMFF box tree in the header region of a file, printing type/size/offset per box and recursing
into containers (moov/trak/mdia/minf/stbl/mvex/moof/traf) + the sample-entry boxes (stsd/avc1/mp4a),
flagging any box whose declared size is malformed. Stops at the first mdat (its payload is opaque).
Confirms track count + codec boxes (avc1/avcC, mp4a/esds) + first-fragment traf count. Used to verify
nx_ts2fmp4 output. Usage: nx_mp4_probe <file.mp4>. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const RDCAP: i64 = 2097152 |
functions
| 11 | func mp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func mn(v: i64) -> i64 |
| 20 | func mind(d: i64) -> i64 { var k: i64=0; while k<d { mp(" " as *u8); k=k+1 } return 0 } |
| 21 | func be32(b: *u8, o: i64) -> i64 { return ((b[o] as i64)<<24)|((b[o+1] as i64)<<16)|((b[o+2] as i64)<<8)|(b[o+3] as i64) } called by 1: walk |
| 22 | func is4(b: *u8, o: i64, s: *u8) -> i64 { if b[o]==s[0] { if b[o+1]==s[1] { if b[o+2]==s[2] { if b[o+3]==s[3] { return 1 } } } } return 0 } |
| 23 | func ptype(b: *u8, o: i64) -> i64 { sys_write(1, ((b as i64)+o) as *u8, 4); return 0 } |
| 24 | func iscont(b: *u8, o: i64) -> i64 |
| 39 | func be64(b: *u8, o: i64) -> i64 called by 1: walk |
| 45 | func walk(b: *u8, start: i64, end: i64, depth: i64, st: *i64) -> i64 |
| 77 | func main(argc: i64, argv: *i64) -> i64 |