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
7461e9ae
Commit
7461e9ae
authored
Apr 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr-test: use formats array
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
69f3af95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
swresample_test.c
libswresample/swresample_test.c
+5
-2
No files found.
libswresample/swresample_test.c
View file @
7461e9ae
...
...
@@ -134,6 +134,7 @@ static void setup_array(uint8_t *out[SWR_CH_MAX], uint8_t *in, enum AVSampleForm
int
main
(
int
argc
,
char
**
argv
){
int
in_sample_rate
,
out_sample_rate
,
ch
,
i
,
in_ch_layout_index
,
out_ch_layout_index
,
osr
,
flush_count
;
int
in_sample_fmt_index
,
out_sample_fmt_index
;
uint64_t
in_ch_layout
,
out_ch_layout
;
enum
AVSampleFormat
in_sample_fmt
,
out_sample_fmt
;
uint8_t
array_in
[
SAMPLES
*
8
*
8
];
...
...
@@ -151,8 +152,10 @@ int main(int argc, char **argv){
in_sample_rate
=
16000
;
for
(
osr
=
0
;
osr
<
FF_ARRAY_ELEMS
(
rates
);
osr
++
){
out_sample_rate
=
rates
[
osr
];
for
(
in_sample_fmt
=
AV_SAMPLE_FMT_U8
;
in_sample_fmt
<=
AV_SAMPLE_FMT_DBL
;
in_sample_fmt
++
){
for
(
out_sample_fmt
=
AV_SAMPLE_FMT_U8
;
out_sample_fmt
<=
AV_SAMPLE_FMT_DBL
;
out_sample_fmt
++
){
for
(
in_sample_fmt_index
=
0
;
in_sample_fmt_index
<
FF_ARRAY_ELEMS
(
formats
);
in_sample_fmt_index
++
){
in_sample_fmt
=
formats
[
in_sample_fmt_index
];
for
(
out_sample_fmt_index
=
0
;
out_sample_fmt_index
<
FF_ARRAY_ELEMS
(
formats
);
out_sample_fmt_index
++
){
out_sample_fmt
=
formats
[
out_sample_fmt_index
];
for
(
in_ch_layout_index
=
0
;
in_ch_layout_index
<
FF_ARRAY_ELEMS
(
layouts
);
in_ch_layout_index
++
){
int
in_ch_count
;
in_ch_layout
=
layouts
[
in_ch_layout_index
];
...
...
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