From 9b5dc8674649b38d971419ae8a382fa003729ac4 Mon Sep 17 00:00:00 2001 From: Panagiotis Issaris Date: Mon, 14 May 2007 14:28:13 +0000 Subject: Make vp3dsp*.c compilation optional. Originally committed as revision 9025 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/dsputil.c') diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 58f5db60b5..9eecaa84ff 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3883,7 +3883,8 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx) c->idct_add= ff_jref_idct_add; c->idct = j_rev_dct; c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; - }else if(avctx->idct_algo==FF_IDCT_VP3){ + }else if((ENABLE_VP3_DECODER || ENABLE_VP5_DECODER || ENABLE_VP6_DECODER || ENABLE_THEORA_DECODER ) && + avctx->idct_algo==FF_IDCT_VP3){ c->idct_put= ff_vp3_idct_put_c; c->idct_add= ff_vp3_idct_add_c; c->idct = ff_vp3_idct_c; -- cgit v1.2.3