forge
Explore
Log in

Don't you dare go Hollow

mp4rotation: record merge-side follow-ups (ff b1503940, P2 guard, gates, cleanup)

Browse files at this commit

153a67de95a3c45f8c587e2262c9e2aaf68b6de9Ahmet Kaan GümüşParent: dcf9b20
lanes/mp4rotation.report.mdmodified+35 -0
@@ -83,3 +83,38 @@ edith's scale normalisation.
83 - Non-mp4 demuxers (matroska/ogg/riff) construct through `StreamInfo::new` and83 - Non-mp4 demuxers (matroska/ogg/riff) construct through `StreamInfo::new` and
84 report `Rotation::None`; Matroska's `ProjectionPoseRoll` is not read (out of84 report `Rotation::None`; Matroska's `ProjectionPoseRoll` is not read (out of
85 scope).85 scope).
86+
87+## MERGE-SIDE FOLLOW-UPS (2026-09-19)
88+
89+Merged into `main` as a fast-forward: the lane was cut from `c102c27a` and
90+main had not advanced, so `git merge --ff-only lane-mp4-rotation` was exact.
91+
92+- Merge id `b1503940` (`c102c27a..b1503940`). `git ls-remote origin main` ==
93+ `b1503940525433a9c5c6ab856a288fa69dcfc0d1`.
94+- **Reviewer P2, fixed on the lane before merging** (`b1503940`):
95+ `Rotation::from_matrix` decided its `b == -c` test with a plain negation, so
96+ a crafted `tkhd` carrying `i32::MIN` in the `c` term panicked in a debug
97+ build (`attempt to negate with overflow`) and wrapped onto a false `Cw270`
98+ in a release one. The fix is `c.checked_neg() == Some(b)`, so such a term
99+ falls through to `Other` — exact integer arithmetic, no panic.
100+ New unit test `registry::tests::a_matrix_term_at_i32_min_is_not_a_quarter_turn`
101+ feeds three `i32::MIN` cases including the load-bearing `(0, MIN, MIN, 0)`;
102+ **fail-pre-fix proven**: reverting the guard panics the test at
103+ `registry.rs:289:28` ("attempt to negate with overflow"), restored re-green.
104+- CREATE-list audit: 11 paths — `crates/ec-core/src/{lib.rs,registry.rs}`,
105+ `crates/ec-mp4/src/demux.rs`, `crates/ec-mp4/tests/data/gen.sh` + 5 committed
106+ `rot{0,90,180,270,45}.mp4` fixtures, `crates/ec-mp4/tests/rotation.rs`,
107+ `lanes/mp4rotation.report.md`. No duplicate/junk file (`*rs.rs` class).
108+- Merged-tree suite (`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-mp4rotmerge`):
109+ `cargo test -p ec-core -p ec-mp4` → ec-core **44 passed, 0 failed** (was 43
110+ + the new guard test), ec-mp4 lib **18/0**, `tests/mp4.rs` **15/0 (1
111+ ignored**, the real-library gate), `tests/rotation.rs` **3/0**.
112+- `cargo check --workspace --all-targets`: clean; warning set byte-identical
113+ to the pre-merge baseline — ec-vp9 5 (TM_PRED, read_partition,
114+ partition_probs, x_mis, y_mis), ec-vorbis 1, **zero in ec-core/ec-mp4**
115+ (forced re-emit verified).
116+- Cleanup: worktree `edith_codecs-mp4rot` removed (branch `lane-mp4-rotation`
117+ kept), `$HOME/.cache/cargo-target-mp4rot*` and the reviewer's scratch dirs
118+ removed. No `EC_*_TRACE` hooks or scratch harnesses were added by this lane.
119+- Kept for the next lane: the `gen.sh` fixture generator (regenerates the five
120+ `rot*.mp4` oracle files) and the deferred muxer follow-up above.