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
7b2ce507
Commit
7b2ce507
authored
Apr 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr-test: fix unused var warnings
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a0dd81dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
swresample_test.c
libswresample/swresample_test.c
+3
-4
No files found.
libswresample/swresample_test.c
View file @
7b2ce507
...
@@ -216,8 +216,7 @@ static void audiogen(void *data, enum AVSampleFormat sample_fmt,
...
@@ -216,8 +216,7 @@ static void audiogen(void *data, enum AVSampleFormat sample_fmt,
}
}
int
main
(
int
argc
,
char
**
argv
){
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_rate
,
out_sample_rate
,
ch
,
i
,
flush_count
;
int
in_sample_fmt_index
,
out_sample_fmt_index
;
uint64_t
in_ch_layout
,
out_ch_layout
;
uint64_t
in_ch_layout
,
out_ch_layout
;
enum
AVSampleFormat
in_sample_fmt
,
out_sample_fmt
;
enum
AVSampleFormat
in_sample_fmt
,
out_sample_fmt
;
uint8_t
array_in
[
SAMPLES
*
8
*
8
];
uint8_t
array_in
[
SAMPLES
*
8
*
8
];
...
@@ -333,7 +332,7 @@ int main(int argc, char **argv){
...
@@ -333,7 +332,7 @@ int main(int argc, char **argv){
out_count
=
swr_convert
(
backw_ctx
,
aout
,
SAMPLES
,
amid
,
mid_count
);
out_count
=
swr_convert
(
backw_ctx
,
aout
,
SAMPLES
,
amid
,
mid_count
);
for
(
ch
=
0
;
ch
<
in_ch_count
;
ch
++
){
for
(
ch
=
0
;
ch
<
in_ch_count
;
ch
++
){
double
sse
,
x
,
maxdiff
=
0
;
double
sse
,
maxdiff
=
0
;
double
sum_a
=
0
;
double
sum_a
=
0
;
double
sum_b
=
0
;
double
sum_b
=
0
;
double
sum_aa
=
0
;
double
sum_aa
=
0
;
...
@@ -362,7 +361,7 @@ int main(int argc, char **argv){
...
@@ -362,7 +361,7 @@ int main(int argc, char **argv){
shift
(
aout
,
-
flush_i
,
in_ch_count
,
in_sample_fmt
);
shift
(
aout
,
-
flush_i
,
in_ch_count
,
in_sample_fmt
);
if
(
flush_count
){
if
(
flush_count
){
for
(
ch
=
0
;
ch
<
in_ch_count
;
ch
++
){
for
(
ch
=
0
;
ch
<
in_ch_count
;
ch
++
){
double
sse
,
x
,
maxdiff
=
0
;
double
sse
,
maxdiff
=
0
;
double
sum_a
=
0
;
double
sum_a
=
0
;
double
sum_b
=
0
;
double
sum_b
=
0
;
double
sum_aa
=
0
;
double
sum_aa
=
0
;
...
...
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