Error in Theora Format Specification
There is an error in the Theora I Specification, linked here: www.xiph.org/theora/doc/Theora_I_spec.pdf (December 21, 2006 version). On page 53, section 6.4.3 Computing a Quantization Matrix.
The erronous statements read:
sum from qrj = 0 to qri - 1 of qi >= QRSIZES[qti][pli][qrj]
sum from qrj = 0 to qri of qi <= QRSIZES[qti][pli][qrj]
They should read:
sum from qrj = 0 to qri - 1 of QRSIZES[qti][pli][qrj] >= qi
sum from qrj = 0 to qri of QRSIZES[qti][pli][qrj] <= qi