Displaying 4 results from an estimated 4 matches for "speex_header_to_packet".
2006 Jan 01
2
Re: speexenc always crashes on amd64
Hi.
Le duodi 2 frimaire, an CCXIV, Wesley J. Landaker a ?crit?:
> speexenc always crashes on amd64; here is an example, and lots of info:
I tracked this bug a bit further than you. Here is the origin of the crash:
op.packet = (unsigned char *)speex_header_to_packet(&header, (int*)&(op.bytes));
(from speexenc.c)
op.bytes is a long, not an int, it is wrong to pass it as an int, and it is
even wronger to use a cast to hide the warning.
Here is a fix:
--- speexenc.c.orig 2006-01-01 17:56:44.157165648 +0100
+++ speexenc.c 2006-01-01 17:57:39.99455...
2005 Sep 03
2
Library export file for Win32 (patch)
...and_handler
-speex_std_mode_request_handler
-speex_std_high_mode_request_handler
-speex_std_char_handler
-speex_default_user_handler
-speex_std_low_mode_request_handler
-speex_std_vbr_request_handler
-speex_std_enh_request_handler
-speex_std_vbr_quality_request_handler
-speex_init_header
-speex_header_to_packet
-speex_packet_to_header
-speex_encode_stereo
-speex_decode_stereo
-speex_std_stereo_request_handler
+speex_bits_advance @1
+speex_bits_destroy @2
+speex_bits_init @3
+speex_bits_init_buffer @4
+speex_bits_insert_terminator @5
+speex_bits_nbytes @6
+speex_bits_pack @7
+speex_bits_peek @8...
2008 Mar 29
0
GCC/ELF Visibility patch
...peex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
+EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
{
int i;
const char *h="Speex ";
@@ -118,7 +118,7 @@
header->reserved2 = 0;
}
-char *speex_header_to_packet(SpeexHeader *header, int *size)
+EXPORT char *speex_header_to_packet(SpeexHeader *header, int *size)
{
SpeexHeader *le_header;
le_header = (SpeexHeader*)speex_alloc(sizeof(SpeexHeader));
@@ -142,7 +142,7 @@
return (char *)le_header;
}
-SpeexHeader *speex_packet_to_header(char *packe...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...peex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
+EXPORT void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
{
int i;
const char *h="Speex ";
@@ -118,7 +118,7 @@
header->reserved2 = 0;
}
-char *speex_header_to_packet(SpeexHeader *header, int *size)
+EXPORT char *speex_header_to_packet(SpeexHeader *header, int *size)
{
SpeexHeader *le_header;
le_header = (SpeexHeader*)speex_alloc(sizeof(SpeexHeader));
@@ -142,7 +142,7 @@
return (char *)le_header;
}
-SpeexHeader *speex_packet_to_header(char *packe...