summaryrefslogtreecommitdiff
path: root/celt/bands.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-07-28 15:05:36 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-07-28 15:16:13 -0400
commitabe8b7851346e498350d5ea0ef8238a634d4d754 (patch)
tree50e137225f49242cbb91d9690857633278141e83 /celt/bands.c
parenteb61c31c14107dd4b02e40977b14cbda36ab8b6b (diff)
downloadopus-abe8b7851346e498350d5ea0ef8238a634d4d754.tar.gz
Don't do theta RDO on intensity-stereo-coded bands
Diffstat (limited to 'celt/bands.c')
-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;