Mercurial > libavcodec.hg
diff dsputil.c @ 5007:f7edc4fe94db libavcodec
Make vp3dsp*.c compilation optional.
author | takis |
---|---|
date | Mon, 14 May 2007 14:28:13 +0000 |
parents | 689490842cf5 |
children | 670618daaeb1 |
line wrap: on
line diff
--- a/dsputil.c Mon May 14 14:07:50 2007 +0000 +++ b/dsputil.c Mon May 14 14:28:13 2007 +0000 @@ -3883,7 +3883,8 @@ 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;