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
1285It accepts the following parameters:1285It accepts the following parameters:
1286@table @option1286@table @option
1287 1287
1288@item sample_fmts1288@item sample_fmts, f
1289A '|'-separated list of requested sample formats.1289A '|'-separated list of requested sample formats.
1290 1290
1291@item sample_rates1291@item sample_rates, r
1292A '|'-separated list of requested sample rates.1292A '|'-separated list of requested sample rates.
1293 1293
1294@item channel_layouts1294@item channel_layouts, cl
1295A '|'-separated list of requested channel layouts.1295A '|'-separated list of requested channel layouts.
1296 1296
1297See @ref{channel layout syntax,,the Channel Layout section in the ffmpeg-utils(1) manual,ffmpeg-utils}1297See @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
50#define F AV_OPT_FLAG_FILTERING_PARAM50#define F AV_OPT_FLAG_FILTERING_PARAM
51static const AVOption aformat_options[] = {51static const AVOption aformat_options[] = {
52 { "sample_fmts", "A '|'-separated list of sample formats.", OFFSET(formats_str), AV_OPT_TYPE_STRING, .flags = A|F },52 { "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 },
53 { "sample_rates", "A '|'-separated list of sample rates.", OFFSET(sample_rates_str), AV_OPT_TYPE_STRING, .flags = A|F },54 { "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 },
54 { "channel_layouts", "A '|'-separated list of channel layouts.", OFFSET(channel_layouts_str), AV_OPT_TYPE_STRING, .flags = A|F },56 { "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 },
55 { NULL }58 { NULL }
56};59};
57 60

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