Skip to content
GitLab
Menu
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
d8286da3
Commit
d8286da3
authored
Aug 12, 2013
by
Mathis Rosenhauer
Browse files
se_table now has static size
parent
c8069f42
Changes
2
Show whitespace changes
Inline
Side-by-side
src/decode.c
View file @
d8286da3
...
...
@@ -637,10 +637,6 @@ int aec_decode_init(struct aec_stream *strm)
if
(
state
==
NULL
)
return
AEC_MEM_ERROR
;
state
->
se_table
=
malloc
(
182
*
sizeof
(
int
));
if
(
state
->
se_table
==
NULL
)
return
AEC_MEM_ERROR
;
create_se_table
(
state
->
se_table
);
strm
->
state
=
state
;
...
...
@@ -748,7 +744,6 @@ int aec_decode_end(struct aec_stream *strm)
struct
internal_state
*
state
=
strm
->
state
;
free
(
state
->
id_table
);
free
(
state
->
se_table
);
free
(
state
->
rsi_buffer
);
free
(
state
);
return
AEC_OK
;
...
...
src/decode.h
View file @
d8286da3
...
...
@@ -87,12 +87,12 @@ struct internal_state {
int
ref
;
/* 1 if current block has reference sample */
int
pp
;
/* 1 if postprocessor has to be used */
int
bytes_per_sample
;
/* storage size of samples in bytes */
int
*
se_table
;
/* table for decoding second extension option */
uint32_t
*
rsi_buffer
;
/* output buffer holding one reference
sample interval */
uint32_t
*
rsip
;
/* current position of output in rsi_buffer */
size_t
rsi_size
;
/* rsi in bytes */
uint32_t
*
flush_start
;
/* first not yet flushed byte in rsi_buffer */
int
se_table
[
182
];
/* table for decoding second extension option */
}
decode_state
;
#endif
/* DECODE_H */
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