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
34123ab9
Commit
34123ab9
authored
Apr 15, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiny_psnr: reindent after last commit.
parent
e6f7e22d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
tiny_psnr.c
tests/tiny_psnr.c
+16
-17
No files found.
tests/tiny_psnr.c
View file @
34123ab9
...
...
@@ -120,30 +120,29 @@ static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes)
fseek
(
f
[
1
],
0
,
SEEK_SET
);
if
(
!
noseek
)
{
/* TODO reindent */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
uint8_t
*
p
=
buf
[
i
];
if
(
fread
(
p
,
1
,
12
,
f
[
i
])
!=
12
)
return
1
;
if
(
!
memcmp
(
p
,
"RIFF"
,
4
)
&&
!
memcmp
(
p
+
8
,
"WAVE"
,
4
))
{
if
(
fread
(
p
,
1
,
8
,
f
[
i
])
!=
8
)
for
(
i
=
0
;
i
<
2
;
i
++
)
{
uint8_t
*
p
=
buf
[
i
];
if
(
fread
(
p
,
1
,
12
,
f
[
i
])
!=
12
)
return
1
;
while
(
memcmp
(
p
,
"data"
,
4
))
{
int
s
=
p
[
4
]
|
p
[
5
]
<<
8
|
p
[
6
]
<<
16
|
p
[
7
]
<<
24
;
fseek
(
f
[
i
],
s
,
SEEK_CUR
);
if
(
!
memcmp
(
p
,
"RIFF"
,
4
)
&&
!
memcmp
(
p
+
8
,
"WAVE"
,
4
))
{
if
(
fread
(
p
,
1
,
8
,
f
[
i
])
!=
8
)
return
1
;
while
(
memcmp
(
p
,
"data"
,
4
))
{
int
s
=
p
[
4
]
|
p
[
5
]
<<
8
|
p
[
6
]
<<
16
|
p
[
7
]
<<
24
;
fseek
(
f
[
i
],
s
,
SEEK_CUR
);
if
(
fread
(
p
,
1
,
8
,
f
[
i
])
!=
8
)
return
1
;
}
}
else
{
fseek
(
f
[
i
],
-
12
,
SEEK_CUR
);
}
}
else
{
fseek
(
f
[
i
],
-
12
,
SEEK_CUR
);
}
}
fseek
(
f
[
shift
<
0
],
abs
(
shift
),
SEEK_CUR
);
fseek
(
f
[
shift
<
0
],
abs
(
shift
),
SEEK_CUR
);
fseek
(
f
[
0
],
skip_bytes
,
SEEK_CUR
);
fseek
(
f
[
1
],
skip_bytes
,
SEEK_CUR
);
fseek
(
f
[
0
],
skip_bytes
,
SEEK_CUR
);
fseek
(
f
[
1
],
skip_bytes
,
SEEK_CUR
);
}
for
(;;)
{
...
...
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