Pin the attachment sniff to real encoder output

TestMediaService
Ya
27 Agosti 2026, 17:08 UTC
Mwandishi
kamo
Ahadi ya
36ed9e1

The existing cases build a header by hand, which tests the code against my belief about the format rather than against the format. These sixty-four-byte prefixes came off ffmpeg — the same libraries a browser recorder, a phone and a desktop capture tool write through. They caught nothing, and they pin the two assumptions worth pinning: WebM's DocType lands at offset 22, past where an ftyp brand would have stopped the read; and a real AVIF still carries an ftyp box, so without the brand allowlist a photo would be stored as video/mp4 and shown in a <video> element as a dead player.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei