summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--celt/bands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/bands.c b/celt/bands.c
index bab16843..703e70f9 100644
--- a/celt/bands.c
+++ b/celt/bands.c
@@ -1501,7 +1501,7 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end,
} else {
if (Y!=NULL)
{
- if (theta_rdo)
+ if (theta_rdo && i < intensity)
{
ec_ctx ec_save, ec_save2;
struct band_ctx ctx_save, ctx_save2;