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
32850053
Commit
32850053
authored
Aug 16, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undeprecate av_opt_set_defaults2().
parent
e3b7298a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
opt.c
libavutil/opt.c
+1
-4
opt.h
libavutil/opt.h
+9
-3
No files found.
libavutil/opt.c
View file @
32850053
...
...
@@ -1177,20 +1177,17 @@ int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags)
void
av_opt_set_defaults
(
void
*
s
)
{
#if FF_API_OLD_AVOPTIONS
av_opt_set_defaults2
(
s
,
0
,
0
);
}
void
av_opt_set_defaults2
(
void
*
s
,
int
mask
,
int
flags
)
{
#endif
const
AVOption
*
opt
=
NULL
;
while
((
opt
=
av_opt_next
(
s
,
opt
)))
{
void
*
dst
=
((
uint8_t
*
)
s
)
+
opt
->
offset
;
#if FF_API_OLD_AVOPTIONS
if
((
opt
->
flags
&
mask
)
!=
flags
)
continue
;
#endif
if
(
opt
->
flags
&
AV_OPT_FLAG_READONLY
)
continue
;
...
...
libavutil/opt.h
View file @
32850053
...
...
@@ -441,10 +441,16 @@ int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags);
*/
void
av_opt_set_defaults
(
void
*
s
);
#if FF_API_OLD_AVOPTIONS
attribute_deprecated
/**
* Set the values of all AVOption fields to their default values. Only these
* AVOption fields for which (opt->flags & mask) == flags will have their
* default applied to s.
*
* @param s an AVOption-enabled struct (its first member must be a pointer to AVClass)
* @param mask combination of AV_OPT_FLAG_*
* @param flags combination of AV_OPT_FLAG_*
*/
void
av_opt_set_defaults2
(
void
*
s
,
int
mask
,
int
flags
);
#endif
/**
* Parse the key/value pairs list in opts. For each key/value pair
...
...
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