diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index d7f05158..5a501d72 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -37493,7 +37493,12 @@ mod tests { false, Some(mc::InterpFilterKind::Regular), false, - false, + // The encoder's own `reference_select` (spec 5.9.22): these + // GOP round trips decode a tile the ENCODER wrote, so the + // header bit must be the one it wrote, not a hard-coded + // `false` (stale-header class -- a `reference_select` stream + // reads a `comp_mode` symbol this decode would skip). + crate::encode::reference_select(), frame.tx_select, &frame.loop_restoration, Some(frame.start_cdfs.0.clone()), @@ -37812,7 +37817,12 @@ mod tests { false, Some(mc::InterpFilterKind::Regular), false, - false, + // The encoder's own `reference_select` (spec 5.9.22): these + // GOP round trips decode a tile the ENCODER wrote, so the + // header bit must be the one it wrote, not a hard-coded + // `false` (stale-header class -- a `reference_select` stream + // reads a `comp_mode` symbol this decode would skip). + crate::encode::reference_select(), frame.tx_select, &frame.loop_restoration, Some(frame.start_cdfs.0.clone()), diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 6e9eca18..37b78b6c 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -3724,7 +3724,7 @@ pub(crate) fn flat_order_hints(order_hint: u32, key_hint: u32, has_altref: bool) /// `EC_AV1_COMPOUND=1` arms it in a test build (which is what the BD gate /// runs as), and every block still codes SINGLE, so the only cost is one /// `comp_mode` symbol per inter block. -const REFERENCE_SELECT: bool = false; +const REFERENCE_SELECT: bool = true; /// [`REFERENCE_SELECT`], with the test-build environment override. pub(crate) fn reference_select() -> bool { @@ -8294,7 +8294,7 @@ mod tests { }) }; let pins: [(u8, usize, u64); 2] = - [(150, 7444, 0x76eb980832d719f1), (60, 27692, 0x8c88f7e73455d439)]; + [(150, 7209, 0xacdd_6952_78c1_49f2), (60, 27353, 0x9be8_7898_f08d_3b77)]; for (q, bytes, hash) in pins { let encoded = encode_sequence(&source, q, 0.5).unwrap(); assert_eq!(