Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
ece3bd3d
Commit
ece3bd3d
authored
Feb 27, 2013
by
Mathis Rosenhauer
Browse files
unused var and trivial function
parent
ef5de19b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/decode.c
View file @
ece3bd3d
...
...
@@ -74,7 +74,7 @@
static void flush_##KIND(struct aec_stream *strm) \
{ \
uint32_t *bp, *flush_end; \
int64_t d, m
, th2;
\
int64_t d, m
;
\
int64_t data, med, half_d, xmin, xmax; \
struct internal_state *state = strm->state; \
\
...
...
@@ -222,7 +222,6 @@ static inline void fill_acc(struct aec_stream *strm)
strm
->
state
->
bitp
+=
b
<<
3
;
switch
(
b
)
{
case
(
7
):
strm
->
state
->
acc
=
(
strm
->
state
->
acc
<<
8
)
|
*
strm
->
next_in
++
;
case
(
6
):
...
...
@@ -333,11 +332,6 @@ static inline uint32_t fs_ask(struct aec_stream *strm)
return
1
;
}
static
inline
uint32_t
fs_get
(
struct
aec_stream
*
strm
)
{
return
strm
->
state
->
fs
;
}
static
inline
void
fs_drop
(
struct
aec_stream
*
strm
)
{
strm
->
state
->
fs
=
0
;
...
...
@@ -399,7 +393,7 @@ static int m_split_fs(struct aec_stream *strm)
do
{
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
state
->
rsip
[
state
->
i
]
=
fs_get
(
strm
)
<<
k
;
state
->
rsip
[
state
->
i
]
=
state
->
fs
<<
k
;
fs_drop
(
strm
);
}
while
(
++
state
->
i
<
state
->
n
);
...
...
@@ -466,7 +460,7 @@ static int m_zero_block(struct aec_stream *strm)
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
zero_blocks
=
fs_get
(
strm
)
+
1
;
zero_blocks
=
state
->
fs
+
1
;
fs_drop
(
strm
);
if
(
zero_blocks
==
ROS
)
{
...
...
@@ -505,7 +499,7 @@ static int m_se_decode(struct aec_stream *strm)
while
(
state
->
i
<
strm
->
block_size
)
{
if
(
fs_ask
(
strm
)
==
0
)
return
M_EXIT
;
m
=
fs_get
(
strm
)
;
m
=
state
->
fs
;
d1
=
m
-
state
->
se_table
[
2
*
m
+
1
];
if
((
state
->
i
&
1
)
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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