OLD | NEW |
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 Loading... |
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 |
OLD | NEW |