diff g726.c @ 3777:20545fbb6f7c libavcodec

add some #ifdef CONFIG_ENCODERS/DECODERS
author mru
date Wed, 27 Sep 2006 19:54:07 +0000
parents 0b546eab515d
children c8c591fe26f8
line wrap: on
line diff
--- a/g726.c	Wed Sep 27 19:47:39 2006 +0000
+++ b/g726.c	Wed Sep 27 19:54:07 2006 +0000
@@ -299,6 +299,7 @@
     return g726_iterate(c, i);
 }
 
+#ifdef CONFIG_ENCODERS
 static int16_t g726_encode(G726Context* c, int16_t sig)
 {
    uint8_t i;
@@ -307,6 +308,7 @@
    g726_iterate(c, i);
    return i;
 }
+#endif
 
 /* Interfacing to the libavcodec */
 
@@ -350,6 +352,7 @@
     return 0;
 }
 
+#ifdef CONFIG_ENCODERS
 static int g726_encode_frame(AVCodecContext *avctx,
                             uint8_t *dst, int buf_size, void *data)
 {
@@ -366,6 +369,7 @@
 
     return put_bits_count(&pb)>>3;
 }
+#endif
 
 static int g726_decode_frame(AVCodecContext *avctx,
                              void *data, int *data_size,