diff options
author | Måns Rullgård <mans@mansr.com> | 2006-09-27 19:54:07 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-09-27 19:54:07 +0000 |
commit | 62bb489b13c1f7967946bf538492dce0af1150fe (patch) | |
tree | f33797575ec10e2efe0b5b94b4251498fedd62e1 /libavcodec/sonic.c | |
parent | 191e8ca75279073699e0c0f25128b2b2088d1cbb (diff) | |
download | ffmpeg-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/sonic.c')
-rw-r--r-- | libavcodec/sonic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index 00a81dd166..5b7d79c858 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -406,6 +406,7 @@ static int predictor_calc_error(int *k, int *state, int order, int error) 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 @@ static void modified_levinson_durbin(int *window, int window_entries, av_free(state); } +#endif /* CONFIG_ENCODERS */ static int samplerate_table[] = { 44100, 22050, 11025, 96000, 48000, 32000, 24000, 16000, 8000 }; @@ -746,6 +748,7 @@ static int sonic_encode_frame(AVCodecContext *avctx, } #endif //CONFIG_ENCODERS +#ifdef CONFIG_DECODERS static int sonic_decode_init(AVCodecContext *avctx) { SonicContext *s = avctx->priv_data; @@ -936,6 +939,7 @@ static int sonic_decode_frame(AVCodecContext *avctx, return (get_bits_count(&gb)+7)/8; } +#endif #ifdef CONFIG_ENCODERS AVCodec sonic_encoder = { |