Don't do theta RDO on intensity-stereo-coded bands
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 28 Jul 2016 19:05:36 +0000 (15:05 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 28 Jul 2016 19:16:13 +0000 (15:16 -0400)
celt/bands.c

index bab1684..703e70f 100644 (file)
@@ -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;