update to snapshot spandsp-20090211

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12186 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2009-02-20 18:22:32 +00:00
1 parent c21e6a048e
commit 6cd7446a20
121 files changed
+1799 -291

No files matched your search

+19 -2
View File
@@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: bitstream.c,v 1.17 2009/02/03 16:28:39 steveu Exp $
* $Id: bitstream.c,v 1.18 2009/02/10 13:06:46 steveu Exp $
*/
/*! \file */
@@ -128,10 +128,27 @@ SPAN_DECLARE(void) bitstream_flush2(bitstream_state_t *s, uint8_t **c)
SPAN_DECLARE(bitstream_state_t *) bitstream_init(bitstream_state_t *s)
{
if (s == NULL)
return NULL;
{
if ((s = (bitstream_state_t *) malloc(sizeof(*s))) == NULL)
return NULL;
}
s->bitstream = 0;
s->residue = 0;
return s;
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) bitstream_release(bitstream_state_t *s)
{
return 0;
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE(int) bitstream_free(bitstream_state_t *s)
{
if (s)
free(s);
return 0;
}
/*- End of function --------------------------------------------------------*/
/*- End of file ------------------------------------------------------------*/