summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/speex_header.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/speex_header.c')
-rw-r--r--apps/codecs/libspeex/speex_header.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/speex_header.c b/apps/codecs/libspeex/speex_header.c
index 2e7c415..8fd1665 100644
--- a/apps/codecs/libspeex/speex_header.c
+++ b/apps/codecs/libspeex/speex_header.c
@@ -67,6 +67,7 @@ typedef struct SpeexHeader {
} SpeexHeader;
*/
+#ifndef SPEEX_DISABLE_ENCODER
void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
{
int i;
@@ -125,6 +126,7 @@ char *speex_header_to_packet(SpeexHeader *header, int *size)
*size = sizeof(SpeexHeader);
return (char *)le_header;
}
+#endif
SpeexHeader *speex_packet_to_header(char *packet, int size)
{