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
42e63ec8
Commit
42e63ec8
authored
Sep 05, 2012
by
Michael Niedermayer
Committed by
Martin Storsjö
Sep 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avopt: fix examples to match the same style about default values as the actual code.
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
dfa559bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
opt.h
libavutil/opt.h
+4
-4
No files found.
libavutil/opt.h
View file @
42e63ec8
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
*
*
* static const AVOption options[] = {
* static const AVOption options[] = {
* { "test_int", "This is a test option of int type.", offsetof(test_struct, int_opt),
* { "test_int", "This is a test option of int type.", offsetof(test_struct, int_opt),
* AV_OPT_TYPE_INT, { -1 }, INT_MIN, INT_MAX },
* AV_OPT_TYPE_INT, {
.i64 =
-1 }, INT_MIN, INT_MAX },
* { "test_str", "This is a test option of string type.", offsetof(test_struct, str_opt),
* { "test_str", "This is a test option of string type.", offsetof(test_struct, str_opt),
* AV_OPT_TYPE_STRING },
* AV_OPT_TYPE_STRING },
* { "test_bin", "This is a test option of binary type.", offsetof(test_struct, bin_opt),
* { "test_bin", "This is a test option of binary type.", offsetof(test_struct, bin_opt),
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
* } child_struct;
* } child_struct;
* static const AVOption child_opts[] = {
* static const AVOption child_opts[] = {
* { "test_flags", "This is a test option of flags type.",
* { "test_flags", "This is a test option of flags type.",
* offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, { 0 }, INT_MIN, INT_MAX },
* offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, {
.i64 =
0 }, INT_MIN, INT_MAX },
* { NULL },
* { NULL },
* };
* };
* static const AVClass child_class = {
* static const AVClass child_class = {
...
@@ -170,8 +170,8 @@
...
@@ -170,8 +170,8 @@
* above, put the following into the child_opts array:
* above, put the following into the child_opts array:
* @code
* @code
* { "test_flags", "This is a test option of flags type.",
* { "test_flags", "This is a test option of flags type.",
* offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, { 0 }, INT_MIN, INT_MAX, "test_unit" },
* offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, {
.i64 =
0 }, INT_MIN, INT_MAX, "test_unit" },
* { "flag1", "This is a flag with value 16", 0, AV_OPT_TYPE_CONST, { 16 }, 0, 0, "test_unit" },
* { "flag1", "This is a flag with value 16", 0, AV_OPT_TYPE_CONST, {
.i64 =
16 }, 0, 0, "test_unit" },
* @endcode
* @endcode
*
*
* @section avoptions_use Using AVOptions
* @section avoptions_use Using AVOptions
...
...
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