ref: e3f6ad0b0cff1e17249d436c91b70479c5aba0c9
parent: 8d6467c7ed09535845f7c84074e7ffc1f2a364c8
author: Gregory Maxwell <[email protected]>
date: Thu Sep 29 12:57:56 EDT 2011
Remove an unreachable block in silk/float/pitch_analysis_core_FLP.c (Fs_kHz is always 8/12/16 in Opus and also enforced by the assert on line 112)
--- a/silk/float/pitch_analysis_core_FLP.c
+++ b/silk/float/pitch_analysis_core_FLP.c
@@ -405,10 +405,8 @@
silk_assert( lag == silk_SAT16( lag ) );
if( Fs_kHz == 12 ) {
lag = silk_RSHIFT_ROUND( silk_SMULBB( lag, 3 ), 1 );
- } else if( Fs_kHz == 16 ) {
+ } else { /* Fs_kHz == 16 */
lag = silk_LSHIFT( lag, 1 );
- } else {
- lag = silk_SMULBB( lag, 3 );
}
lag = silk_LIMIT_int( lag, min_lag, max_lag );