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
c32d9c6d
Commit
c32d9c6d
authored
Oct 07, 2012
by
Mathis Rosenhauer
Committed by
Thomas Jahns
Feb 19, 2013
Browse files
Fixed bug in !preprocessed case
parent
c7a0ea46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/encode.c
View file @
c32d9c6d
...
...
@@ -209,16 +209,16 @@ static int m_get_block(struct aec_stream *strm)
}
if
(
state
->
blocks_avail
==
0
)
{
state
->
ref
=
1
;
state
->
block_p
=
state
->
block_buf
;
state
->
block_p
=
state
->
data_pp
;
if
(
strm
->
avail_in
>=
state
->
block_len
*
strm
->
rsi
)
{
state
->
get_rsi
(
strm
);
state
->
blocks_avail
=
strm
->
rsi
-
1
;
if
(
strm
->
flags
&
AEC_DATA_PREPROCESS
)
if
(
strm
->
flags
&
AEC_DATA_PREPROCESS
)
{
state
->
preprocess
(
strm
);
state
->
ref
=
1
;
}
return
m_check_zero_block
(
strm
);
}
else
{
state
->
i
=
0
;
...
...
@@ -268,8 +268,10 @@ static int m_get_block_cautious(struct aec_stream *strm)
}
while
(
++
state
->
i
<
strm
->
rsi
*
strm
->
block_size
);
state
->
blocks_avail
=
strm
->
rsi
-
1
;
if
(
strm
->
flags
&
AEC_DATA_PREPROCESS
)
if
(
strm
->
flags
&
AEC_DATA_PREPROCESS
)
{
state
->
preprocess
(
strm
);
state
->
ref
=
1
;
}
return
m_check_zero_block
(
strm
);
}
...
...
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