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
9571a560
Commit
9571a560
authored
Sep 08, 2015
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/opt: refactor pixel/sample fmt common case
parent
0b93c6d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
opt.c
libavutil/opt.c
+3
-7
No files found.
libavutil/opt.c
View file @
9571a560
...
@@ -1126,6 +1126,8 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
...
@@ -1126,6 +1126,8 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
case
AV_OPT_TYPE_INT64
:
case
AV_OPT_TYPE_INT64
:
case
AV_OPT_TYPE_DURATION
:
case
AV_OPT_TYPE_DURATION
:
case
AV_OPT_TYPE_CHANNEL_LAYOUT
:
case
AV_OPT_TYPE_CHANNEL_LAYOUT
:
case
AV_OPT_TYPE_PIXEL_FMT
:
case
AV_OPT_TYPE_SAMPLE_FMT
:
write_number
(
s
,
opt
,
dst
,
1
,
1
,
opt
->
default_val
.
i64
);
write_number
(
s
,
opt
,
dst
,
1
,
1
,
opt
->
default_val
.
i64
);
break
;
break
;
case
AV_OPT_TYPE_DOUBLE
:
case
AV_OPT_TYPE_DOUBLE
:
...
@@ -1153,12 +1155,6 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
...
@@ -1153,12 +1155,6 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
case
AV_OPT_TYPE_VIDEO_RATE
:
case
AV_OPT_TYPE_VIDEO_RATE
:
set_string_video_rate
(
s
,
opt
,
opt
->
default_val
.
str
,
dst
);
set_string_video_rate
(
s
,
opt
,
opt
->
default_val
.
str
,
dst
);
break
;
break
;
case
AV_OPT_TYPE_PIXEL_FMT
:
write_number
(
s
,
opt
,
dst
,
1
,
1
,
opt
->
default_val
.
i64
);
break
;
case
AV_OPT_TYPE_SAMPLE_FMT
:
write_number
(
s
,
opt
,
dst
,
1
,
1
,
opt
->
default_val
.
i64
);
break
;
case
AV_OPT_TYPE_BINARY
:
case
AV_OPT_TYPE_BINARY
:
set_string_binary
(
s
,
opt
,
opt
->
default_val
.
str
,
dst
);
set_string_binary
(
s
,
opt
,
opt
->
default_val
.
str
,
dst
);
break
;
break
;
...
...
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