Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mathis Rosenhauer
libaec
Commits
0524b741
Commit
0524b741
authored
Feb 11, 2014
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct lenght calculation for SE
parent
7128dc5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/encode.c
src/encode.c
+1
-1
tests/check_code_options.c
tests/check_code_options.c
+3
-3
No files found.
src/encode.c
View file @
0524b741
...
...
@@ -443,7 +443,7 @@ static uint32_t assess_se_option(struct aec_stream *strm)
len
=
UINT32_MAX
;
break
;
}
else
{
len
+=
d
*
(
d
+
1
)
/
2
+
state
->
block
[
i
+
1
];
len
+=
d
*
(
d
+
1
)
/
2
+
state
->
block
[
i
+
1
]
+
1
;
}
}
return
len
;
...
...
tests/check_code_options.c
View file @
0524b741
...
...
@@ -138,9 +138,9 @@ int check_se(struct test_state *state)
state
->
out
(
tmp
+
size
,
0
,
size
);
state
->
out
(
tmp
+
2
*
size
,
0
,
size
);
state
->
out
(
tmp
+
3
*
size
,
0
,
size
);
state
->
out
(
tmp
+
4
*
size
,
0
,
size
);
state
->
out
(
tmp
+
5
*
size
,
0
,
size
);
state
->
out
(
tmp
+
6
*
size
,
0
,
size
);
state
->
out
(
tmp
+
4
*
size
,
1
,
size
);
state
->
out
(
tmp
+
5
*
size
,
1
,
size
);
state
->
out
(
tmp
+
6
*
size
,
1
,
size
);
state
->
out
(
tmp
+
7
*
size
,
1
,
size
);
}
...
...
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