[tcq] bug fix for DQ off bug fix for DQ off
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c index de33302..e7c4e91 100644 --- a/av1/encoder/encodetxb.c +++ b/av1/encoder/encodetxb.c
@@ -1056,7 +1056,7 @@ int max = lf ? COEFF_BASE_RANGE + LF_NUM_BASE_LEVELS : COEFF_BASE_RANGE + NUM_BASE_LEVELS; max -= enable_tcq ? 1 : 0; - int hr = level - max; + int hr = level - max - 1; if (enable_tcq && level > max) { hr = get_high_range(level, lf); }