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
1dbd433f
Commit
1dbd433f
authored
Nov 17, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: use av_opt_set_int() instead of manual assignments in swr_alloc_set_opts().
parent
f03afd5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
swresample.c
libswresample/swresample.c
+3
-4
No files found.
libswresample/swresample.c
View file @
1dbd433f
...
...
@@ -98,12 +98,11 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
av_opt_set_int
(
s
,
"icl"
,
in_ch_layout
,
0
);
av_opt_set_int
(
s
,
"isf"
,
in_sample_fmt
,
0
);
av_opt_set_int
(
s
,
"isr"
,
in_sample_rate
,
0
);
av_opt_set_int
(
s
,
"tsf"
,
AV_SAMPLE_FMT_S16
,
0
);
av_opt_set_int
(
s
,
"ich"
,
av_get_channel_layout_nb_channels
(
s
->
in_ch_layout
),
0
);
av_opt_set_int
(
s
,
"och"
,
av_get_channel_layout_nb_channels
(
s
->
out_ch_layout
),
0
);
s
->
channel_map
=
channel_map
;
s
->
in
.
ch_count
=
av_get_channel_layout_nb_channels
(
s
->
in_ch_layout
);
s
->
out
.
ch_count
=
av_get_channel_layout_nb_channels
(
s
->
out_ch_layout
);
s
->
int_sample_fmt
=
AV_SAMPLE_FMT_S16
;
return
s
;
}
...
...
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