forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on cdccbc2f662cc4e4dda0e2d99d7faf0ca5577064Filtered to crates/ec-mpegts/src/track.rsClear filter

Today

TrueHD: Atmos directory at 36 bytes, count from num_substreams (ffmpeg mlp_parse.c:71-74,160; mlpdec.c read_access_unit)Ahmet Kaan Gümüş · 731634a
TrueHD: Atmos directory at 36 bytes, count from num_substreams (ffmpeg mlp_parse.c:71-74,160; mlpdec.c read_access_unit)

Root cause, sync.rs AccessUnitHeader::parse: the major sync was fixed at 28 bytes.
ffmpeg mlp_get_major_sync_size adds 2 + 2*(buf[26]>>4) when buf[25]&1 (TrueHD).
atmos.thd AU0 sets buf[25]&1 with buf[26]>>4 == 1, so the directory starts at
36 (4 + 32), not 32. The entry count was inferred from end pointers landing on
the AU length; ffmpeg reads num_substreams (buf[16]>>4) and ignores trailing
bytes. atmos.thd AU25/63/102 end 4 words short of the AU length, so the walk
ran past 4 entries.

Fix: extension-aware major sync length; count from num_substreams, carried in
TrueHdFacts for access units without a major sync; the scanner skips access
units that have no known count. ffmpeg evidence: AU0 4 entries, last end
1092 bytes past dir end 44 = 1136 AU length; sub-entries 246/578/750/1136 with
the extension sync.
TrueHD: directory from major sync count, 32-byte Atmos major sync (ffmpeg 9.0.2 mlp_parse.c/mlpdec.c)Ahmet Kaan Gümüş · 2c05ed8
TrueHD: directory from major sync count, 32-byte Atmos major sync (ffmpeg 9.0.2 mlp_parse.c/mlpdec.c)

Root cause, sync.rs AccessUnitHeader::parse: (1) the major sync was fixed at 28
bytes, but ffmpeg mlp_get_major_sync_size adds 2+2*(buf[26]>>4) bytes when
buf[25]&1 (TrueHD); atmos.thd AU0 has extension bit set, so the directory
started at 32 instead of 36. (2) the entry count was inferred from end pointers
landing on the AU length; ffmpeg reads num_substreams (major sync buf[16]>>4,
mlp_parse.c:160) and ignores trailing bytes, and atmos.thd AU25/63/102 carry
32 words past the last end pointer, so the walk ran past 4 entries.

Fix: length from the extension block; count from num_substreams, carried over
from the last major sync on units without one (TrueHdDecoder::substream_count);
entries past the data are corrupt. Atmos fixture: AU0 4 entries, ends 546w
lands on 1136 bytes; num_substreams=4 with substream_info 0x80 (16-ch).

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.