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
d8286da3
Commit
d8286da3
authored
Aug 12, 2013
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se_table now has static size
parent
c8069f42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
src/decode.c
src/decode.c
+0
-5
src/decode.h
src/decode.h
+1
-1
No files found.
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