Mercurial > audlegacy
comparison Plugins/Input/wma/libffwma/cutils.c @ 210:12004b385a96 trunk
[svn] Sync with xmms-wma instead of bmp-wma & GThreadify. Does not explode, but does not play either.
author | chainsaw |
---|---|
date | Sat, 19 Nov 2005 14:42:28 -0800 |
parents | b8d4c1faa6d7 |
children | 0bea7509d6ba |
comparison
equal
deleted
inserted
replaced
209:bd8457b077cf | 210:12004b385a96 |
---|---|
15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 */ | 18 */ |
19 #include "avformat.h" | 19 #include "avformat.h" |
20 #include "avcodec.h" | |
20 | 21 |
21 #if !defined(CONFIG_NOCUTILS) | 22 #if !defined(CONFIG_NOCUTILS) |
22 /** | 23 /** |
23 * Return TRUE if val is a prefix of str. If it returns TRUE, ptr is | 24 * Return TRUE if val is a prefix of str. If it returns TRUE, ptr is |
24 * set to the next character in 'str' after the prefix. | 25 * set to the next character in 'str' after the prefix. |
119 if ((nb & (nb - 1)) == 0) { | 120 if ((nb & (nb - 1)) == 0) { |
120 if (nb == 0) | 121 if (nb == 0) |
121 nb_alloc = 1; | 122 nb_alloc = 1; |
122 else | 123 else |
123 nb_alloc = nb * 2; | 124 nb_alloc = nb * 2; |
124 tab = realloc(tab, nb_alloc * sizeof(unsigned long)); | 125 tab = av_realloc(tab, nb_alloc * sizeof(unsigned long)); |
125 *tab_ptr = tab; | 126 *tab_ptr = tab; |
126 } | 127 } |
127 tab[nb++] = elem; | 128 tab[nb++] = elem; |
128 *nb_ptr = nb; | 129 *nb_ptr = nb; |
129 } | 130 } |