Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
libaec
Commits
912eba27
Commit
912eba27
authored
Jul 17, 2017
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
8880310b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/decode.c
src/decode.c
+1
-1
src/utime.c
src/utime.c
+2
-2
tests/check_aec.c
tests/check_aec.c
+3
-3
No files found.
src/decode.c
View file @
912eba27
...
...
@@ -520,7 +520,7 @@ static int m_zero_block(struct aec_stream *strm)
if
(
zero_blocks
==
ROS
)
{
int
b
=
(
int
)
RSI_USED_SIZE
(
state
)
/
strm
->
block_size
;
zero_blocks
=
MIN
(
strm
->
rsi
-
b
,
64
-
(
b
%
64
));
zero_blocks
=
MIN
(
(
int
)(
strm
->
rsi
-
b
)
,
64
-
(
b
%
64
));
}
else
if
(
zero_blocks
>
ROS
)
{
zero_blocks
--
;
}
...
...
src/utime.c
View file @
912eba27
...
...
@@ -67,7 +67,8 @@ run_cmd(int argc, char *argv[]);
int
main
(
int
argc
,
char
**
argv
)
{
struct
timeval
utime
=
{
.
tv_sec
=
0
,
.
tv_usec
=
0
};
int
status
,
rstatus
;
int
rstatus
;
int
status
=
0
;
if
(
argc
>
1
&&
((
status
=
run_cmd
(
argc
-
1
,
argv
+
1
))
>=
0
))
{
struct
rusage
usage
;
...
...
@@ -120,4 +121,3 @@ run_cmd(int argc, char *argv[])
}
return
status
;
}
tests/check_aec.c
View file @
912eba27
...
...
@@ -175,7 +175,7 @@ int encode_decode_small(struct test_state *state)
printf
(
"
\n
"
);
printf
(
"%02x "
,
state
->
ubuf
[
i
]);
}
printf
(
"
\n\n
compressed buf len %
li
"
,
compressed_size
);
printf
(
"
\n\n
compressed buf len %
zu
"
,
compressed_size
);
for
(
int
i
=
0
;
i
<
80
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
"
\n
"
);
...
...
@@ -197,7 +197,7 @@ int encode_decode_small(struct test_state *state)
int
encode_decode_large
(
struct
test_state
*
state
)
{
int
status
;
int
bflags
;
int
bflags
=
0
;
size_t
to
;
char
fbase
[
1024
];
struct
aec_stream
*
strm
=
state
->
strm
;
...
...
@@ -290,7 +290,7 @@ int encode_decode_large(struct test_state *state)
printf
(
"
\n
"
);
printf
(
"%02x "
,
state
->
ubuf
[
i
]);
}
printf
(
"
\n\n
compressed buf len %
li
"
,
to
);
printf
(
"
\n\n
compressed buf len %
zu
"
,
to
);
for
(
int
i
=
0
;
i
<
80
;
i
++
)
{
if
(
i
%
8
==
0
)
printf
(
"
\n
"
);
...
...
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