summaryrefslogtreecommitdiff
path: root/silk/enc_API.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-09 01:05:25 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-09 01:05:25 -0400
commit1f65994ef428520534630d5d706c91fb1d690938 (patch)
tree97be3b71623869a3c5385afaef39ef6dc09331b4 /silk/enc_API.c
parentebece6337320f9605b8cc0debd5742e15415ad6e (diff)
downloadopus-1f65994ef428520534630d5d706c91fb1d690938.tar.gz
Avoids unnecessary collapse of the HF stereo image in hybrid mode.
SILK now reports an "effective width" that takes into account side prediction.
Diffstat (limited to 'silk/enc_API.c')
-rw-r--r--silk/enc_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/enc_API.c b/silk/enc_API.c
index 4702401b..cd4d960c 100644
--- a/silk/enc_API.c
+++ b/silk/enc_API.c
@@ -452,7 +452,7 @@ opus_int silk_Encode(
encControl->allowBandwidthSwitch = psEnc->allowBandwidthSwitch;
encControl->inWBmodeWithoutVariableLP = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == 16 && psEnc->state_Fxx[ 0 ].sCmn.sLP.mode == 0;
encControl->internalSampleRate = silk_SMULBB( psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, 1000 );
- encControl->stereoWidth_Q14 = psEnc->sStereo.width_prev_Q14;
+ encControl->stereoWidth_Q14 = psEnc->sStereo.effective_width_prev_Q14;
if( prefillFlag ) {
encControl->payloadSize_ms = tmp_payloadSize_ms;
encControl->complexity = tmp_complexity;