revert API change PiperOrigin-RevId: 915873630
diff --git a/c/dec/decode.c b/c/dec/decode.c index b579e33..446365a 100644 --- a/c/dec/decode.c +++ b/c/dec/decode.c
@@ -1527,9 +1527,9 @@ static BROTLI_BOOL AttachCompoundDictionary( BrotliDecoderState* state, const uint8_t* data, size_t size) { BrotliDecoderCompoundDictionary* addon = state->compound_dictionary; - /* Actually, result could be BROTLI_TRUE, but it raises uncertainty whether - * this chunk is actually attached or not. */ - if (size == 0) return BROTLI_FALSE; + /* Soft lie: no dictionary is attached; i.e. this call is not accounted + * towards SHARED_BROTLI_MAX_COMPOUND_DICTS limit. */ + if (size == 0) return BROTLI_TRUE; if (size > SHARED_BROTLI_MAX_RAW_DICT_SIZE) return BROTLI_FALSE; if (state->state != BROTLI_STATE_UNINITED) return BROTLI_FALSE; if (!addon) {