[FFmpeg-devel] [PATCH 10/11] vsrc_nullsrc: remove mathematical constants now redundant.
Nicolas George
nicolas.george at normalesup.org
Thu Oct 13 17:54:10 CEST 2011
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
doc/filters.texi | 2 +-
libavfilter/vsrc_nullsrc.c | 9 ---------
2 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 3ebaef8..bd15b5e 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -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).
@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".
@section frei0r_src
diff --git a/libavfilter/vsrc_nullsrc.c b/libavfilter/vsrc_nullsrc.c
index c513be8..b6d3567 100644
--- a/libavfilter/vsrc_nullsrc.c
+++ b/libavfilter/vsrc_nullsrc.c
@@ -28,17 +28,11 @@
#include "avfilter.h"
static const char *var_names[] = {
- "E",
- "PHI",
- "PI",
"AVTB", /* default timebase 1/AV_TIME_BASE */
NULL
};
enum var_name {
- VAR_E,
- VAR_PHI,
- VAR_PI,
VAR_AVTB,
VAR_VARS_NB
};
@@ -76,9 +70,6 @@ static int config_props(AVFilterLink *outlink)
int ret;
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);
if ((ret = av_expr_parse_and_eval(&res, priv->tb_expr, var_names, priv->var_values,
--
1.7.6.3
More information about the ffmpeg-devel
mailing list