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
3db4c88a
Commit
3db4c88a
authored
Sep 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg/opt_preset: update to new option API for reading codec names.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bad953bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ffmpeg_opt.c
ffmpeg_opt.c
+5
-3
No files found.
ffmpeg_opt.c
View file @
3db4c88a
...
...
@@ -1960,9 +1960,11 @@ static int opt_preset(void *optctx, const char *opt, const char *arg)
OptionsContext
*
o
=
optctx
;
FILE
*
f
=
NULL
;
char
filename
[
1000
],
line
[
1000
],
tmp_line
[
1000
];
const
char
*
codec_name
=
*
opt
==
'v'
?
video_codec_name
:
*
opt
==
'a'
?
audio_codec_name
:
subtitle_codec_name
;
const
char
*
codec_name
=
NULL
;
tmp_line
[
0
]
=
*
opt
;
tmp_line
[
1
]
=
0
;
MATCH_PER_TYPE_OPT
(
codec_names
,
str
,
codec_name
,
NULL
,
tmp_line
);
if
(
!
(
f
=
get_preset_file
(
filename
,
sizeof
(
filename
),
arg
,
*
opt
==
'f'
,
codec_name
)))
{
if
(
!
strncmp
(
arg
,
"libx264-lossless"
,
strlen
(
"libx264-lossless"
))){
...
...
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