From 4e2b15fc5e5f457f62605262a46962b5fd63ff99 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 18 Jul 2011 00:15:08 +0300 Subject: vf_qp: enable compilation depending on libavutil eval API Libavutil eval API seems to be enough for vf_qp, so enable the filter if the API is available. Also clean up some left over lines for other filters in Makefile. --- libmpcodecs/vf.c | 2 +- libmpcodecs/vf_qp.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index eefdaa3c46..bb9ebff7b4 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -186,11 +186,11 @@ static const vf_info_t* const filter_list[]={ #ifdef CONFIG_FFMPEG_INTERNALS &vf_info_spp, &vf_info_fspp, - &vf_info_qp, &vf_info_mcdeint, #endif #ifdef CONFIG_FFMPEG_EVAL_API &vf_info_geq, + &vf_info_qp, #endif &vf_info_yuvcsp, &vf_info_kerndeint, diff --git a/libmpcodecs/vf_qp.c b/libmpcodecs/vf_qp.c index d78cd8251e..5e418d2814 100644 --- a/libmpcodecs/vf_qp.c +++ b/libmpcodecs/vf_qp.c @@ -24,6 +24,8 @@ #include #include +#include + #include "mp_msg.h" #include "cpudetect.h" #include "img_format.h" @@ -31,9 +33,6 @@ #include "vf.h" #include "libvo/fastmemcpy.h" -#include "libavcodec/avcodec.h" -#include "libavutil/eval.h" - struct vf_priv_s { char eq[200]; @@ -69,7 +68,7 @@ static int config(struct vf_instance *vf, double temp_val; int res; - res= av_parse_and_eval_expr(&temp_val, vf->priv->eq, const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL); + res= av_expr_parse_and_eval(&temp_val, vf->priv->eq, const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL); if (res < 0){ mp_msg(MSGT_VFILTER, MSGL_ERR, "qp: Error evaluating \"%s\" \n", vf->priv->eq); -- cgit v1.2.3