History

avfilter/aformat: add shorthand names for options

Gyan Doshi committed 6 years ago

Commit 5bd00101 parent 653ef882 files · +6 −3Browse files

Unified · Split

2 files
  1. doc/filters.texi +3 −3
  2. libavfilter/af_aformat.c +3 −0
doc/filters.texi+3−3
@@ -1285,13 +1285,13 @@ negotiate the most appropriate format to minimize conversions. · 1284 unmodified lines
12851285 It accepts the following parameters:
12861286 @table @option
12871287
1288−@item sample_fmts
1288+@item sample_fmts, f
12891289 A '|'-separated list of requested sample formats.
12901290
1291−@item sample_rates
1291+@item sample_rates, r
12921292 A '|'-separated list of requested sample rates.
12931293
1294−@item channel_layouts
1294+@item channel_layouts, cl
12951295 A '|'-separated list of requested channel layouts.
12961296
12971297 See @ref{channel layout syntax,,the Channel Layout section in the ffmpeg-utils(1) manual,ffmpeg-utils}
libavfilter/af_aformat.c+3−0
@@ -50,8 +50,11 @@ typedef struct AFormatContext { · 49 unmodified lines
5050 #define F AV_OPT_FLAG_FILTERING_PARAM
5151 static const AVOption aformat_options[] = {
5252 { "sample_fmts", "A '|'-separated list of sample formats.", OFFSET(formats_str), AV_OPT_TYPE_STRING, .flags = A|F },
53+ { "f", "A '|'-separated list of sample formats.", OFFSET(formats_str), AV_OPT_TYPE_STRING, .flags = A|F },
5354 { "sample_rates", "A '|'-separated list of sample rates.", OFFSET(sample_rates_str), AV_OPT_TYPE_STRING, .flags = A|F },
55+ { "r", "A '|'-separated list of sample rates.", OFFSET(sample_rates_str), AV_OPT_TYPE_STRING, .flags = A|F },
5456 { "channel_layouts", "A '|'-separated list of channel layouts.", OFFSET(channel_layouts_str), AV_OPT_TYPE_STRING, .flags = A|F },
57+ { "cl", "A '|'-separated list of channel layouts.", OFFSET(channel_layouts_str), AV_OPT_TYPE_STRING, .flags = A|F },
5558 { NULL }
5659 };
5760

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