Context: I compared our implementation against a H.274 reference stream. Identified this issues as a result. This is still not bit-exact, we round incorrectly in some cases (~2% of output pixels are +1 or -1). I'm not sure where we pick up the remaining error from..