diff sonic.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/sonic.c	Wed Sep 27 19:47:39 2006 +0000
+++ b/sonic.c	Wed Sep 27 19:54:07 2006 +0000
@@ -406,6 +406,7 @@
     return x;
 }
 
+#ifdef CONFIG_ENCODERS
 // Heavily modified Levinson-Durbin algorithm which
 // copes better with quantization, and calculates the
 // actual whitened result as it goes.
@@ -476,6 +477,7 @@
 
     av_free(state);
 }
+#endif /* CONFIG_ENCODERS */
 
 static int samplerate_table[] =
     { 44100, 22050, 11025, 96000, 48000, 32000, 24000, 16000, 8000 };
@@ -746,6 +748,7 @@
 }
 #endif //CONFIG_ENCODERS
 
+#ifdef CONFIG_DECODERS
 static int sonic_decode_init(AVCodecContext *avctx)
 {
     SonicContext *s = avctx->priv_data;
@@ -936,6 +939,7 @@
 
     return (get_bits_count(&gb)+7)/8;
 }
+#endif
 
 #ifdef CONFIG_ENCODERS
 AVCodec sonic_encoder = {