History

lavfi/aspect: apply style fixes

Stefano Sabatini committed 3 years ago

Commit 7d58df71 parent 5c133071 file · +6 −4Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_aspect.c+6−4
@@ -41,7 +41,8 @@ · 40 unmodified lines
41static const char *const var_names[] = {41static const char *const var_names[] = {
42 "w",42 "w",
43 "h",43 "h",
44 "a", "dar",44 "a",
45 "dar",
45 "sar",46 "sar",
46 "hsub",47 "hsub",
47 "vsub",48 "vsub",
@@ -51,7 +52,8 @@ static const char *const var_names[] = { · 3 unmodified lines
51enum var_name {52enum var_name {
52 VAR_W,53 VAR_W,
53 VAR_H,54 VAR_H,
54 VAR_A, VAR_DAR,55 VAR_A,
56 VAR_DAR,
55 VAR_SAR,57 VAR_SAR,
56 VAR_HSUB,58 VAR_HSUB,
57 VAR_VSUB,59 VAR_VSUB,
@@ -105,8 +107,8 @@ static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio) · 47 unmodified lines
105 107
106 /* evaluate new aspect ratio*/108 /* evaluate new aspect ratio*/
107 ret = av_expr_parse_and_eval(&res, s->ratio_expr,109 ret = av_expr_parse_and_eval(&res, s->ratio_expr,
108 var_names, var_values,110 var_names, var_values,
109 NULL, NULL, NULL, NULL, NULL, 0, ctx);111 NULL, NULL, NULL, NULL, NULL, 0, ctx);
110 if (ret < 0) {112 if (ret < 0) {
111 ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);113 ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
112 } else114 } else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t