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

Side by Side Diff: third_party/opus/src/silk/init_decoder.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 unified diff | Download patch
« no previous file with comments | « third_party/opus/src/silk/gain_quant.c ('k') | third_party/opus/src/silk/lin2log.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*********************************************************************** 1 /***********************************************************************
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved.
3 Redistribution and use in source and binary forms, with or without 3 Redistribution and use in source and binary forms, with or without
4 modification, are permitted provided that the following conditions 4 modification, are permitted provided that the following conditions
5 are met: 5 are met:
6 - Redistributions of source code must retain the above copyright notice, 6 - Redistributions of source code must retain the above copyright notice,
7 this list of conditions and the following disclaimer. 7 this list of conditions and the following disclaimer.
8 - Redistributions in binary form must reproduce the above copyright 8 - Redistributions in binary form must reproduce the above copyright
9 notice, this list of conditions and the following disclaimer in the 9 notice, this list of conditions and the following disclaimer in the
10 documentation and/or other materials provided with the distribution. 10 documentation and/or other materials provided with the distribution.
(...skipping 26 matching lines...) Expand all
37 opus_int silk_init_decoder( 37 opus_int silk_init_decoder(
38 silk_decoder_state *psDec /* I/O Decoder state pointer */ 38 silk_decoder_state *psDec /* I/O Decoder state pointer */
39 ) 39 )
40 { 40 {
41 /* Clear the entire encoder state, except anything copied */ 41 /* Clear the entire encoder state, except anything copied */
42 silk_memset( psDec, 0, sizeof( silk_decoder_state ) ); 42 silk_memset( psDec, 0, sizeof( silk_decoder_state ) );
43 43
44 /* Used to deactivate LSF interpolation */ 44 /* Used to deactivate LSF interpolation */
45 psDec->first_frame_after_reset = 1; 45 psDec->first_frame_after_reset = 1;
46 psDec->prev_gain_Q16 = 65536; 46 psDec->prev_gain_Q16 = 65536;
47 psDec->arch = opus_select_arch();
47 48
48 /* Reset CNG state */ 49 /* Reset CNG state */
49 silk_CNG_Reset( psDec ); 50 silk_CNG_Reset( psDec );
50 51
51 /* Reset PLC state */ 52 /* Reset PLC state */
52 silk_PLC_Reset( psDec ); 53 silk_PLC_Reset( psDec );
53 54
54 return(0); 55 return(0);
55 } 56 }
56 57
OLDNEW
« no previous file with comments | « third_party/opus/src/silk/gain_quant.c ('k') | third_party/opus/src/silk/lin2log.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698