lavfi/aspect: apply style fixes
This commit is contained in:
parent
5c13307989
commit
7d58df7bb2
@ -41,7 +41,8 @@
|
|||||||
static const char *const var_names[] = {
|
static const char *const var_names[] = {
|
||||||
"w",
|
"w",
|
||||||
"h",
|
"h",
|
||||||
"a", "dar",
|
"a",
|
||||||
|
"dar",
|
||||||
"sar",
|
"sar",
|
||||||
"hsub",
|
"hsub",
|
||||||
"vsub",
|
"vsub",
|
||||||
@ -51,7 +52,8 @@ static const char *const var_names[] = {
|
|||||||
enum var_name {
|
enum var_name {
|
||||||
VAR_W,
|
VAR_W,
|
||||||
VAR_H,
|
VAR_H,
|
||||||
VAR_A, VAR_DAR,
|
VAR_A,
|
||||||
|
VAR_DAR,
|
||||||
VAR_SAR,
|
VAR_SAR,
|
||||||
VAR_HSUB,
|
VAR_HSUB,
|
||||||
VAR_VSUB,
|
VAR_VSUB,
|
||||||
@ -105,8 +107,8 @@ static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio)
|
|||||||
|
|
||||||
/* evaluate new aspect ratio*/
|
/* evaluate new aspect ratio*/
|
||||||
ret = av_expr_parse_and_eval(&res, s->ratio_expr,
|
ret = av_expr_parse_and_eval(&res, s->ratio_expr,
|
||||||
var_names, var_values,
|
var_names, var_values,
|
||||||
NULL, NULL, NULL, NULL, NULL, 0, ctx);
|
NULL, NULL, NULL, NULL, NULL, 0, ctx);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
|
ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user