summaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
authorJesús de Vicente Peña <devicentepena@webrtc.org>2019-10-08 14:30:23 +0200
committerFelicia Lim <flim@google.com>2020-02-03 12:32:53 -0800
commitcf58efea0bf978dc53290f3a6898323f4e8b663a (patch)
tree6bd410037f749ad10bac6ca8f2f2a17e08100747 /silk
parent6d29f51a40be64e03acc2619f35b4971ba00617c (diff)
downloadopus-cf58efea0bf978dc53290f3a6898323f4e8b663a.tar.gz
Revert "Attenuate SILK PLC gain only for unvoiced speech"
This reverts commit 4f5557c3095a1d212161609ff638cdae67a9b303. Signed-off-by: Felicia Lim <flim@google.com>
Diffstat (limited to 'silk')
-rw-r--r--silk/PLC.c6
-rw-r--r--silk/decode_frame.c1
2 files changed, 2 insertions, 5 deletions
diff --git a/silk/PLC.c b/silk/PLC.c
index f8939165..4667440d 100644
--- a/silk/PLC.c
+++ b/silk/PLC.c
@@ -328,10 +328,8 @@ static OPUS_INLINE void silk_PLC_conceal(
for( j = 0; j < LTP_ORDER; j++ ) {
B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 );
}
- if ( psDec->indices.signalType != TYPE_NO_VOICE_ACTIVITY ) {
- /* Gradually reduce excitation gain */
- rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 );
- }
+ /* Gradually reduce excitation gain */
+ rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 );
/* Slowly increase pitch lag */
psPLC->pitchL_Q8 = silk_SMLAWB( psPLC->pitchL_Q8, psPLC->pitchL_Q8, PITCH_DRIFT_FAC_Q16 );
diff --git a/silk/decode_frame.c b/silk/decode_frame.c
index e73825b2..4f36f854 100644
--- a/silk/decode_frame.c
+++ b/silk/decode_frame.c
@@ -97,7 +97,6 @@ opus_int silk_decode_frame(
psDec->first_frame_after_reset = 0;
} else {
/* Handle packet loss by extrapolation */
- psDec->indices.signalType = psDec->prevSignalType;
silk_PLC( psDec, psDecCtrl, pOut, 1, arch );
}