aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g726.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-09-27 19:54:07 +0000
commit62bb489b13c1f7967946bf538492dce0af1150fe (patch)
treef33797575ec10e2efe0b5b94b4251498fedd62e1 /libavcodec/g726.c
parent191e8ca75279073699e0c0f25128b2b2088d1cbb (diff)
downloadffmpeg-62bb489b13c1f7967946bf538492dce0af1150fe.tar.gz
add some #ifdef CONFIG_ENCODERS/DECODERS
Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r--libavcodec/g726.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 8114fe0f32..e636a42ccb 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -299,6 +299,7 @@ static int16_t g726_decode(G726Context* c, int16_t i)
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 @@ static int16_t g726_encode(G726Context* c, int16_t sig)
g726_iterate(c, i);
return i;
}
+#endif
/* Interfacing to the libavcodec */
@@ -350,6 +352,7 @@ static int g726_close(AVCodecContext *avctx)
return 0;
}
+#ifdef CONFIG_ENCODERS
static int g726_encode_frame(AVCodecContext *avctx,
uint8_t *dst, int buf_size, void *data)
{
@@ -366,6 +369,7 @@ static int g726_encode_frame(AVCodecContext *avctx,
return put_bits_count(&pb)>>3;
}
+#endif
static int g726_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,