Mercurial > mplayer.hg
changeset 31475:37a2dae0ab4b
Change libvpx configure check to match FFmpeg's and also enable the encoder.
author | reimar |
---|---|
date | Wed, 23 Jun 2010 16:57:04 +0000 |
parents | 133a32b2a5a5 |
children | d7ef415c30fa |
files | configure |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Jun 23 16:44:21 2010 +0000 +++ b/configure Wed Jun 23 16:57:04 2010 +0000 @@ -7667,10 +7667,16 @@ res_comment="libavcodec (static) is required by libvpx, sorry" else cat > $TMPC << EOF +#include <vpx/vpx_encoder.h> #include <vpx/vpx_decoder.h> #include <vpx/vp8dx.h> +#include <vpx/vp8cx.h> struct vpx_codec_ctx decoder; -int main(void) { vpx_codec_dec_init(NULL, &vpx_codec_vp8_dx_algo, NULL, 0); return 0; } +int main(void) { + vpx_codec_dec_init(NULL, &vpx_codec_vp8_dx_algo, NULL, 0); + vpx_codec_enc_init(NULL, &vpx_codec_vp8_dx_algo, NULL, 0); + return 0; +} EOF cc_check -lvpx && _libvpx_lavc=yes && extra_ldflags="$extra_ldflags -lvpx" fi