Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/opus/src/silk/gain_quant.c

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/opus/src/silk/float/wrappers_FLP.c ('k') | third_party/opus/src/silk/init_decoder.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/src/silk/gain_quant.c
diff --git a/third_party/opus/src/silk/gain_quant.c b/third_party/opus/src/silk/gain_quant.c
index 64ccd0611bff368cf79f950df5a167baa8d410bd..ee65245aa367105ee1e0dfa8b5f2619d8c223820 100644
--- a/third_party/opus/src/silk/gain_quant.c
+++ b/third_party/opus/src/silk/gain_quant.c
@@ -76,6 +76,7 @@ void silk_gains_quant(
/* Accumulate deltas */
if( ind[ k ] > double_step_size_threshold ) {
*prev_ind += silk_LSHIFT( ind[ k ], 1 ) - double_step_size_threshold;
+ *prev_ind = silk_min_int( *prev_ind, N_LEVELS_QGAIN - 1 );
} else {
*prev_ind += ind[ k ];
}
« no previous file with comments | « third_party/opus/src/silk/float/wrappers_FLP.c ('k') | third_party/opus/src/silk/init_decoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698