Mercurial > audlegacy
comparison Plugins/Input/aac/libfaad2/pulse.c @ 199:0a2ad94e8607 trunk
[svn] Synced with bmp-mp4. Build system is fragile, but should work now.
author | chainsaw |
---|---|
date | Wed, 16 Nov 2005 16:21:11 -0800 |
parents | fa848bd484d8 |
children | 29feaace84d0 |
comparison
equal
deleted
inserted
replaced
198:5a338b31e393 | 199:0a2ad94e8607 |
---|---|
1 /* | 1 /* |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | 2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding |
3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com | 3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com |
4 ** | 4 ** |
5 ** This program is free software; you can redistribute it and/or modify | 5 ** This program is free software; you can redistribute it and/or modify |
6 ** it under the terms of the GNU General Public License as published by | 6 ** it under the terms of the GNU General Public License as published by |
7 ** the Free Software Foundation; either version 2 of the License, or | 7 ** the Free Software Foundation; either version 2 of the License, or |
8 ** (at your option) any later version. | 8 ** (at your option) any later version. |
20 ** forbidden. | 20 ** forbidden. |
21 ** | 21 ** |
22 ** Commercial non-GPL licensing of this software is possible. | 22 ** Commercial non-GPL licensing of this software is possible. |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | 23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. |
24 ** | 24 ** |
25 ** $Id: pulse.c,v 1.12 2003/11/12 20:47:58 menno Exp $ | 25 ** $Id: pulse.c,v 1.17 2004/09/04 14:56:28 menno Exp $ |
26 **/ | 26 **/ |
27 | 27 |
28 #include "common.h" | 28 #include "common.h" |
29 #include "structs.h" | 29 #include "structs.h" |
30 | 30 |
37 uint16_t k; | 37 uint16_t k; |
38 pulse_info *pul = &(ics->pul); | 38 pulse_info *pul = &(ics->pul); |
39 | 39 |
40 k = ics->swb_offset[pul->pulse_start_sfb]; | 40 k = ics->swb_offset[pul->pulse_start_sfb]; |
41 | 41 |
42 for(i = 0; i <= pul->number_pulse; i++) { | 42 for (i = 0; i <= pul->number_pulse; i++) |
43 { | |
43 k += pul->pulse_offset[i]; | 44 k += pul->pulse_offset[i]; |
44 | 45 |
45 if (k >= framelen) | 46 if (k >= framelen) |
46 return 15; /* should not be possible */ | 47 return 15; /* should not be possible */ |
47 | 48 |