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

Side by Side Diff: third_party/opus/src/celt/modes.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/celt/mips/vq_mipsr1.h ('k') | third_party/opus/src/celt/pitch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2007-2008 CSIRO 1 /* Copyright (c) 2007-2008 CSIRO
2 Copyright (c) 2007-2009 Xiph.Org Foundation 2 Copyright (c) 2007-2009 Xiph.Org Foundation
3 Copyright (c) 2008 Gregory Maxwell 3 Copyright (c) 2008 Gregory Maxwell
4 Written by Jean-Marc Valin and Gregory Maxwell */ 4 Written by Jean-Marc Valin and Gregory Maxwell */
5 /* 5 /*
6 Redistribution and use in source and binary forms, with or without 6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions 7 modification, are permitted provided that the following conditions
8 are met: 8 are met:
9 9
10 - Redistributions of source code must retain the above copyright 10 - Redistributions of source code must retain the above copyright
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 for (i=0;i<TOTAL_MODES;i++) 420 for (i=0;i<TOTAL_MODES;i++)
421 { 421 {
422 if (mode == static_mode_list[i]) 422 if (mode == static_mode_list[i])
423 { 423 {
424 return; 424 return;
425 } 425 }
426 } 426 }
427 } 427 }
428 #endif /* CUSTOM_MODES_ONLY */ 428 #endif /* CUSTOM_MODES_ONLY */
429 opus_free((opus_int16*)mode->eBands); 429 opus_free((opus_int16*)mode->eBands);
430 opus_free((opus_int16*)mode->allocVectors); 430 opus_free((unsigned char*)mode->allocVectors);
431 431
432 opus_free((opus_val16*)mode->window); 432 opus_free((opus_val16*)mode->window);
433 opus_free((opus_int16*)mode->logN); 433 opus_free((opus_int16*)mode->logN);
434 434
435 opus_free((opus_int16*)mode->cache.index); 435 opus_free((opus_int16*)mode->cache.index);
436 opus_free((unsigned char*)mode->cache.bits); 436 opus_free((unsigned char*)mode->cache.bits);
437 opus_free((unsigned char*)mode->cache.caps); 437 opus_free((unsigned char*)mode->cache.caps);
438 clt_mdct_clear(&mode->mdct, arch); 438 clt_mdct_clear(&mode->mdct, arch);
439 439
440 opus_free((CELTMode *)mode); 440 opus_free((CELTMode *)mode);
441 } 441 }
442 #endif 442 #endif
OLDNEW
« no previous file with comments | « third_party/opus/src/celt/mips/vq_mipsr1.h ('k') | third_party/opus/src/celt/pitch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698