diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-09 01:05:25 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-09 01:05:25 -0400 |
commit | 1f65994ef428520534630d5d706c91fb1d690938 (patch) | |
tree | 97be3b71623869a3c5385afaef39ef6dc09331b4 /silk/enc_API.c | |
parent | ebece6337320f9605b8cc0debd5742e15415ad6e (diff) | |
download | opus-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.c | 2 |
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; |