From 153a67de95a3c45f8c587e2262c9e2aaf68b6de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 19 Sep 2026 23:11:25 +0300 Subject: [PATCH] mp4rotation: record merge-side follow-ups (ff b1503940, P2 guard, gates, cleanup) --- lanes/mp4rotation.report.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/lanes/mp4rotation.report.md b/lanes/mp4rotation.report.md index cbcd54dc..fef6a1c6 100644 --- a/lanes/mp4rotation.report.md +++ b/lanes/mp4rotation.report.md @@ -83,3 +83,38 @@ edith's scale normalisation. - Non-mp4 demuxers (matroska/ogg/riff) construct through `StreamInfo::new` and report `Rotation::None`; Matroska's `ProjectionPoseRoll` is not read (out of scope). + +## MERGE-SIDE FOLLOW-UPS (2026-09-19) + +Merged into `main` as a fast-forward: the lane was cut from `c102c27a` and +main had not advanced, so `git merge --ff-only lane-mp4-rotation` was exact. + +- Merge id `b1503940` (`c102c27a..b1503940`). `git ls-remote origin main` == + `b1503940525433a9c5c6ab856a288fa69dcfc0d1`. +- **Reviewer P2, fixed on the lane before merging** (`b1503940`): + `Rotation::from_matrix` decided its `b == -c` test with a plain negation, so + a crafted `tkhd` carrying `i32::MIN` in the `c` term panicked in a debug + build (`attempt to negate with overflow`) and wrapped onto a false `Cw270` + in a release one. The fix is `c.checked_neg() == Some(b)`, so such a term + falls through to `Other` — exact integer arithmetic, no panic. + New unit test `registry::tests::a_matrix_term_at_i32_min_is_not_a_quarter_turn` + feeds three `i32::MIN` cases including the load-bearing `(0, MIN, MIN, 0)`; + **fail-pre-fix proven**: reverting the guard panics the test at + `registry.rs:289:28` ("attempt to negate with overflow"), restored re-green. +- CREATE-list audit: 11 paths — `crates/ec-core/src/{lib.rs,registry.rs}`, + `crates/ec-mp4/src/demux.rs`, `crates/ec-mp4/tests/data/gen.sh` + 5 committed + `rot{0,90,180,270,45}.mp4` fixtures, `crates/ec-mp4/tests/rotation.rs`, + `lanes/mp4rotation.report.md`. No duplicate/junk file (`*rs.rs` class). +- Merged-tree suite (`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-mp4rotmerge`): + `cargo test -p ec-core -p ec-mp4` → ec-core **44 passed, 0 failed** (was 43 + + the new guard test), ec-mp4 lib **18/0**, `tests/mp4.rs` **15/0 (1 + ignored**, the real-library gate), `tests/rotation.rs` **3/0**. +- `cargo check --workspace --all-targets`: clean; warning set byte-identical + to the pre-merge baseline — ec-vp9 5 (TM_PRED, read_partition, + partition_probs, x_mis, y_mis), ec-vorbis 1, **zero in ec-core/ec-mp4** + (forced re-emit verified). +- Cleanup: worktree `edith_codecs-mp4rot` removed (branch `lane-mp4-rotation` + kept), `$HOME/.cache/cargo-target-mp4rot*` and the reviewer's scratch dirs + removed. No `EC_*_TRACE` hooks or scratch harnesses were added by this lane. +- Kept for the next lane: the `gen.sh` fixture generator (regenerates the five + `rot*.mp4` oracle files) and the deferred muxer follow-up above.