diff options
author | Jesús de Vicente Peña <devicentepena@webrtc.org> | 2019-10-08 14:30:23 +0200 |
---|---|---|
committer | Felicia Lim <flim@google.com> | 2020-02-03 12:32:53 -0800 |
commit | cf58efea0bf978dc53290f3a6898323f4e8b663a (patch) | |
tree | 6bd410037f749ad10bac6ca8f2f2a17e08100747 /silk/PLC.c | |
parent | 6d29f51a40be64e03acc2619f35b4971ba00617c (diff) | |
download | opus-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/PLC.c')
-rw-r--r-- | silk/PLC.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 ); |