diff --git a/crates/ec-av1/src/cdf.rs b/crates/ec-av1/src/cdf.rs
index 9c787b98..130f4a0a 100644
--- a/crates/ec-av1/src/cdf.rs
+++ b/crates/ec-av1/src/cdf.rs
@@ -1201,6 +1201,34 @@ pub const COMP_REF_TYPE: [[u16; 3]; 5] = [
[22475, 32768, 0],
];
+/// `Default_Comp_Group_Idx_Cdf` (spec 9.4, libaom `default_comp_group_idx_cdfs`):
+/// whether a compound block's `comp_group_idx` picks masked compound (`1`)
+/// over the plain distance-weighted/simple-average blend (`0`), indexed by
+/// `get_comp_group_idx_context` -- only read when `seq.enable_masked_compound`
+/// and the block size is masked-compound-eligible (lane-av1comp).
+pub const COMP_GROUP_IDX: [[u16; 3]; 6] = [
+ [26607, 32768, 0],
+ [22891, 32768, 0],
+ [18840, 32768, 0],
+ [24594, 32768, 0],
+ [19934, 32768, 0],
+ [22674, 32768, 0],
+];
+
+/// `Default_Compound_Idx_Cdf` (spec 9.4, libaom `default_compound_idx_cdfs`):
+/// whether a compound block's `compound_idx` picks the simple average
+/// (`1`) or [`crate::compound::dist_wtd_comp_weight_assign`]'s distance
+/// weights (`0`), indexed by `get_comp_index_context` -- only read when
+/// `seq.enable_jnt_comp` (lane-av1comp).
+pub const COMPOUND_IDX: [[u16; 3]; 6] = [
+ [18244, 32768, 0],
+ [12865, 32768, 0],
+ [7053, 32768, 0],
+ [13259, 32768, 0],
+ [9334, 32768, 0],
+ [4644, 32768, 0],
+];
+
/// `Default_Uni_Comp_Ref_Cdf` (spec 9.4, `default_uni_comp_ref_cdf`): the
/// three binary decisions narrowing a unidirectional compound pair down to
/// one of `{BWDREF,ALTREF}`/`{LAST,LAST2}`/`{LAST,LAST3}`/`{LAST,GOLDEN}`.
diff --git a/crates/ec-av1/src/cdf_state.rs b/crates/ec-av1/src/cdf_state.rs
index 61a549f6..fb02879f 100644
--- a/crates/ec-av1/src/cdf_state.rs
+++ b/crates/ec-av1/src/cdf_state.rs
@@ -308,6 +308,13 @@ pub(crate) struct Cdfs {
pub comp_ref: [[[u16; 3]; 3]; 3],
/// The two binary decisions of a bidirectional pair's backward ref.
pub comp_bwdref: [[[u16; 3]; 2]; 3],
+ /// Whether a compound block's `comp_group_idx` picks masked compound
+ /// (lane-av1comp, spec 5.11.25's `comp_group_idx`).
+ pub comp_group_idx: [[u16; 3]; 6],
+ /// Whether a compound block's `compound_idx` picks the simple average
+ /// over the distance-weighted blend (lane-av1comp, spec 5.11.25's
+ /// `compound_idx`).
+ pub compound_idx: [[u16; 3]; 6],
/// The luma mode of an inter frame's intra block, by its size group.
pub y_mode: [[u16; 14]; 4],
/// Whether an inter block codes its motion vector explicitly.
@@ -521,6 +528,8 @@ impl Cdfs {
reset3(&mut self.uni_comp_ref);
reset3(&mut self.comp_ref);
reset3(&mut self.comp_bwdref);
+ reset2(&mut self.comp_group_idx);
+ reset2(&mut self.compound_idx);
reset2(&mut self.y_mode);
reset2(&mut self.new_mv);
reset2(&mut self.zero_mv);
@@ -951,6 +960,8 @@ impl Cdfs {
uni_comp_ref: cdf::UNI_COMP_REF,
comp_ref: cdf::COMP_REF,
comp_bwdref: cdf::COMP_BWDREF,
+ comp_group_idx: cdf::COMP_GROUP_IDX,
+ compound_idx: cdf::COMPOUND_IDX,
y_mode: cdf::Y_MODE,
new_mv: cdf::NEW_MV,
zero_mv: cdf::ZERO_MV,
diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs
index 2441a4d4..f7b4df81 100644
--- a/crates/ec-av1/src/decode.rs
+++ b/crates/ec-av1/src/decode.rs
@@ -784,6 +784,15 @@ struct Neighbours {
/// (no decode path here ever produces a compound block yet).
above_ref1: Vec