mirror of https://git.ffmpeg.org/ffmpeg.git
vf_settb: remove mathematical constants now redundant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
db820c3c13
commit
94b345855f
|
@ -1954,7 +1954,7 @@ Set the timebase to use for the output frames timestamps.
|
||||||
It is mainly useful for testing timebase configuration.
|
It is mainly useful for testing timebase configuration.
|
||||||
|
|
||||||
It accepts in input an arithmetic expression representing a rational.
|
It accepts in input an arithmetic expression representing a rational.
|
||||||
The expression can contain the constants "PI", "E", "PHI", "AVTB" (the
|
The expression can contain the constants "AVTB" (the
|
||||||
default timebase), and "intb" (the input timebase).
|
default timebase), and "intb" (the input timebase).
|
||||||
|
|
||||||
The default value for the input is "intb".
|
The default value for the input is "intb".
|
||||||
|
|
|
@ -31,18 +31,12 @@
|
||||||
#include "internal.h"
|
#include "internal.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 */
|
||||||
"intb", /* input timebase */
|
"intb", /* input timebase */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
enum var_name {
|
enum var_name {
|
||||||
VAR_E,
|
|
||||||
VAR_PHI,
|
|
||||||
VAR_PI,
|
|
||||||
VAR_AVTB,
|
VAR_AVTB,
|
||||||
VAR_INTB,
|
VAR_INTB,
|
||||||
VAR_VARS_NB
|
VAR_VARS_NB
|
||||||
|
@ -73,9 +67,6 @@ static int config_output_props(AVFilterLink *outlink)
|
||||||
int ret;
|
int ret;
|
||||||
double res;
|
double res;
|
||||||
|
|
||||||
settb->var_values[VAR_E] = M_E;
|
|
||||||
settb->var_values[VAR_PHI] = M_PHI;
|
|
||||||
settb->var_values[VAR_PI] = M_PI;
|
|
||||||
settb->var_values[VAR_AVTB] = av_q2d(AV_TIME_BASE_Q);
|
settb->var_values[VAR_AVTB] = av_q2d(AV_TIME_BASE_Q);
|
||||||
settb->var_values[VAR_INTB] = av_q2d(inlink->time_base);
|
settb->var_values[VAR_INTB] = av_q2d(inlink->time_base);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue