From 738a983a1ea8c53542b2ba268f90e814c9d70e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 18:16:24 +0300 Subject: [PATCH] fix(av1): reword a second capability claim my own probe disproved "a partition below 8x8 (this encoder never writes one)" is false. Default aomenc at --cpu-used=0 --cq-level=20 over lavfi testsrc2, with palette and the rect/AB/1to4 partitions switched off so the earlier refusals cannot mask it, reaches that refusal directly. Three sites in decode.rs plus the inventory now describe the decoder instead. Method note for whoever probes the remaining two claims (angle delta, non-DC chroma on an 8x8 inter leaf): a claim can only be tested on a stream that gets PAST every refusal in front of it, so disable the tools whose refusals fire first rather than concluding the case is unreachable. Suite 262 passed / 0 failed. --- crates/ec-av1/src/decode.rs | 6 +++--- crates/ec-av1/src/refusal_inventory.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 9841d484..f3ca2e41 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -5858,7 +5858,7 @@ pub(crate) fn decode_key_frame_tile_with_cdfs( } if part8 != PARTITION_NONE { return Err(unsupported( - "a partition below 8x8 (this encoder never writes one)", + "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", )); } let leaf_mode = decode_leaf8( @@ -5929,7 +5929,7 @@ pub(crate) fn decode_key_frame_tile_with_cdfs( } if part8 != PARTITION_NONE { return Err(unsupported( - "a partition below 8x8 (this encoder never writes one)", + "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", )); } let leaf_mode = decode_leaf8( @@ -10879,7 +10879,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( let part8 = dec.symbol(&mut cdfs.partition_w8[leaf_ctx]); if part8 != PARTITION_NONE { return Err(unsupported( - "a partition below 8x8 (this encoder never writes one)", + "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", )); } let (skip, is_inter, skip_mode_leaf, compound_ctx8) = diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index e785fd9f..ea79557e 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -28,7 +28,7 @@ const CAPABILITY_CLAIMS: &[&str] = &[ "a non-DC chroma mode on an 8x8 inter-frame leaf (this encoder never writes one)", "a nonzero angle delta (this encoder never writes one)", "a partition below 16x16 other than a clean split (this decoder codes only the square arms below 16x16)", - "a partition below 8x8 (this encoder never writes one)", + "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", "a tx_type symbol on a rectangular transform (never expected at this size)", ];