Commit 7d60b43e authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer

vsrc_nullsrc: remove mathematical constants now redundant.

Signed-off-by: 's avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 21e888bd
...@@ -2438,7 +2438,7 @@ source. The default values of @var{width} and @var{height} are ...@@ -2438,7 +2438,7 @@ source. The default values of @var{width} and @var{height} are
respectively 352 and 288 (corresponding to the CIF size format). respectively 352 and 288 (corresponding to the CIF size format).
@var{timebase} specifies an arithmetic expression representing a @var{timebase} specifies an arithmetic expression representing a
timebase. The expression can contain the constants "PI", "E", "PHI", timebase. The expression can contain the constant
"AVTB" (the default timebase), and defaults to the value "AVTB". "AVTB" (the default timebase), and defaults to the value "AVTB".
@section frei0r_src @section frei0r_src
......
...@@ -28,17 +28,11 @@ ...@@ -28,17 +28,11 @@
#include "avfilter.h" #include "avfilter.h"
static const char *var_names[] = { static const char *var_names[] = {
"E",
"PHI",
"PI",
"AVTB", /* default timebase 1/AV_TIME_BASE */ "AVTB", /* default timebase 1/AV_TIME_BASE */
NULL NULL
}; };
enum var_name { enum var_name {
VAR_E,
VAR_PHI,
VAR_PI,
VAR_AVTB, VAR_AVTB,
VAR_VARS_NB VAR_VARS_NB
}; };
...@@ -76,9 +70,6 @@ static int config_props(AVFilterLink *outlink) ...@@ -76,9 +70,6 @@ static int config_props(AVFilterLink *outlink)
int ret; int ret;
double res; double res;
priv->var_values[VAR_E] = M_E;
priv->var_values[VAR_PHI] = M_PHI;
priv->var_values[VAR_PI] = M_PI;
priv->var_values[VAR_AVTB] = av_q2d(AV_TIME_BASE_Q); priv->var_values[VAR_AVTB] = av_q2d(AV_TIME_BASE_Q);
if ((ret = av_expr_parse_and_eval(&res, priv->tb_expr, var_names, priv->var_values, if ((ret = av_expr_parse_and_eval(&res, priv->tb_expr, var_names, priv->var_values,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment