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
ab799664
Commit
ab799664
authored
Oct 29, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: Conditionally compile libswscale-related bits
This fixes compilation with libswscale disabled.
parent
72c758f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
cmdutils.c
cmdutils.c
+6
-1
No files found.
cmdutils.c
View file @
ab799664
...
...
@@ -371,7 +371,10 @@ int opt_default(void *optctx, const char *opt, const char *arg)
const
AVOption
*
o
;
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 CONFIG_SWSCALE
const
AVClass
*
sc
=
sws_get_class
();
#endif
if
(
!
(
p
=
strchr
(
opt
,
':'
)))
p
=
opt
+
strlen
(
opt
);
...
...
@@ -385,6 +388,7 @@ int opt_default(void *optctx, const char *opt, const char *arg)
else
if
((
o
=
av_opt_find
(
&
fc
,
opt
,
NULL
,
0
,
AV_OPT_SEARCH_CHILDREN
|
AV_OPT_SEARCH_FAKE_OBJ
)))
av_dict_set
(
&
format_opts
,
opt
,
arg
,
FLAGS
);
#if CONFIG_SWSCALE
else
if
((
o
=
av_opt_find
(
&
sc
,
opt
,
NULL
,
0
,
AV_OPT_SEARCH_CHILDREN
|
AV_OPT_SEARCH_FAKE_OBJ
)))
{
// XXX we only support sws_flags, not arbitrary sws options
...
...
@@ -394,6 +398,7 @@ int opt_default(void *optctx, const char *opt, const char *arg)
return
ret
;
}
}
#endif
if
(
o
)
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