Fix possible read past the end of the buffer when reading 0 bits.
[xiph/unicode.git] / postfish / libpostfish.h
blob54c2f96e078eed7356717971de5b7d9f829e69d7
1 /*
3 * postfish
4 *
5 * Copyright (C) 2002-2005 Monty
7 * Postfish is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * Postfish is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _LIBPOSTFISH_H_
26 struct postfish_instance;
27 typedef struct postfish_instance postfish_instance;
29 extern void time_linkage_init(time_linkage *new,int ch);
30 extern int time_linkage_copy(time_linkage *dest,time_linkage *src);
31 extern int time_linkage_channels(time_linkage *in);
32 extern int time_linkage_samples(time_linkage *in);
33 extern int time_linkage_init_alias_split(time_linkage *in,time_linkage *out);
34 extern void time_linkage_init_alias_combine(time_linkage *in,time_linkage *out,int ch);
35 extern void time_linkage_swap(time_linkage *a, time_linkage *b);
36 extern void time_linkage_clear(time_linkage *in);
38 #endif