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
c7686172
Commit
c7686172
authored
Sep 18, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation with --disable-swscale.
Fixes ticket #482.
parent
8e4c1000
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cmdutils.c
cmdutils.c
+4
-1
No files found.
cmdutils.c
View file @
c7686172
...
...
@@ -311,7 +311,7 @@ int opt_default(const char *opt, const char *arg)
const
AVOption
*
oc
,
*
of
,
*
os
;
char
opt_stripped
[
128
];
const
char
*
p
;
const
AVClass
*
cc
=
avcodec_get_class
(),
*
fc
=
avformat_get_class
()
,
*
sc
=
sws_get_class
()
;
const
AVClass
*
cc
=
avcodec_get_class
(),
*
fc
=
avformat_get_class
();
if
(
!
(
p
=
strchr
(
opt
,
':'
)))
p
=
opt
+
strlen
(
opt
);
...
...
@@ -323,7 +323,9 @@ int opt_default(const char *opt, const char *arg)
av_dict_set
(
&
codec_opts
,
opt
,
arg
,
FLAGS
(
oc
));
if
((
of
=
av_opt_find
(
&
fc
,
opt
,
NULL
,
0
,
AV_OPT_SEARCH_CHILDREN
|
AV_OPT_SEARCH_FAKE_OBJ
)))
av_dict_set
(
&
format_opts
,
opt
,
arg
,
FLAGS
(
of
));
#if CONFIG_SWSCALE
if
((
os
=
av_opt_find
(
&
sc
,
opt
,
NULL
,
0
,
AV_OPT_SEARCH_CHILDREN
|
AV_OPT_SEARCH_FAKE_OBJ
)))
{
const
AVClass
*
sc
=
sws_get_class
();
// XXX we only support sws_flags, not arbitrary sws options
int
ret
=
av_set_string3
(
sws_opts
,
opt
,
arg
,
1
,
NULL
);
if
(
ret
<
0
)
{
...
...
@@ -331,6 +333,7 @@ int opt_default(const char *opt, const char *arg)
return
ret
;
}
}
#endif
if
(
oc
||
of
||
os
)
return
0
;
...
...
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