From 62bb489b13c1f7967946bf538492dce0af1150fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Wed, 27 Sep 2006 19:54:07 +0000 Subject: add some #ifdef CONFIG_ENCODERS/DECODERS Originally committed as revision 6356 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/g726.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/g726.c') 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, -- cgit v1.2.1