Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bee2d75b
Commit
bee2d75b
authored
Mar 12, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: update to the new options syntax.
The separators were changed from ',' to '|' in all the filters.
parent
f160c6a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
avconv_filter.c
avconv_filter.c
+6
-6
No files found.
avconv_filter.c
View file @
bee2d75b
...
...
@@ -34,7 +34,7 @@
/* Define a function for building a string containing a list of
* allowed formats. */
#define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name
, separator)
\
#define DEF_CHOOSE_FORMAT(type, var, supported_list, none, get_name
)
\
static char *choose_ ## var ## s(OutputStream *ost) \
{ \
if (ost->st->codec->var != none) { \
...
...
@@ -51,7 +51,7 @@ static char *choose_ ## var ## s(OutputStream *ost) \
\
for (p = ost->enc->supported_list; *p != none; p++) { \
get_name(*p); \
avio_printf(s, "%s
" separator, name);
\
avio_printf(s, "%s
|", name);
\
} \
len = avio_close_dyn_buf(s, &ret); \
ret[len - 1] = 0; \
...
...
@@ -61,16 +61,16 @@ static char *choose_ ## var ## s(OutputStream *ost) \
}
DEF_CHOOSE_FORMAT
(
enum
AVPixelFormat
,
pix_fmt
,
pix_fmts
,
AV_PIX_FMT_NONE
,
GET_PIX_FMT_NAME
,
":"
)
GET_PIX_FMT_NAME
)
DEF_CHOOSE_FORMAT
(
enum
AVSampleFormat
,
sample_fmt
,
sample_fmts
,
AV_SAMPLE_FMT_NONE
,
GET_SAMPLE_FMT_NAME
,
","
)
AV_SAMPLE_FMT_NONE
,
GET_SAMPLE_FMT_NAME
)
DEF_CHOOSE_FORMAT
(
int
,
sample_rate
,
supported_samplerates
,
0
,
GET_SAMPLE_RATE_NAME
,
","
)
GET_SAMPLE_RATE_NAME
)
DEF_CHOOSE_FORMAT
(
uint64_t
,
channel_layout
,
channel_layouts
,
0
,
GET_CH_LAYOUT_NAME
,
","
)
GET_CH_LAYOUT_NAME
)
FilterGraph
*
init_simple_filtergraph
(
InputStream
*
ist
,
OutputStream
*
ost
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment