Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
90b26d63
Commit
90b26d63
authored
Jun 03, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vp3: factorize out free_tables()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
57665430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
vp3.c
libavcodec/vp3.c
+15
-8
No files found.
libavcodec/vp3.c
View file @
90b26d63
...
@@ -262,6 +262,20 @@ typedef struct Vp3DecodeContext {
...
@@ -262,6 +262,20 @@ typedef struct Vp3DecodeContext {
* VP3 specific functions
* VP3 specific functions
************************************************************************/
************************************************************************/
static
av_cold
void
free_tables
(
AVCodecContext
*
avctx
)
{
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
av_freep
(
&
s
->
superblock_coding
);
av_freep
(
&
s
->
all_fragments
);
av_freep
(
&
s
->
coded_fragment_list
[
0
]);
av_freep
(
&
s
->
dct_tokens_base
);
av_freep
(
&
s
->
superblock_fragments
);
av_freep
(
&
s
->
macroblock_coding
);
av_freep
(
&
s
->
motion_val
[
0
]);
av_freep
(
&
s
->
motion_val
[
1
]);
}
static
void
vp3_decode_flush
(
AVCodecContext
*
avctx
)
static
void
vp3_decode_flush
(
AVCodecContext
*
avctx
)
{
{
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
...
@@ -279,14 +293,7 @@ static av_cold int vp3_decode_end(AVCodecContext *avctx)
...
@@ -279,14 +293,7 @@ static av_cold int vp3_decode_end(AVCodecContext *avctx)
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
int
i
;
int
i
;
av_freep
(
&
s
->
superblock_coding
);
free_tables
(
avctx
);
av_freep
(
&
s
->
all_fragments
);
av_freep
(
&
s
->
coded_fragment_list
[
0
]);
av_freep
(
&
s
->
dct_tokens_base
);
av_freep
(
&
s
->
superblock_fragments
);
av_freep
(
&
s
->
macroblock_coding
);
av_freep
(
&
s
->
motion_val
[
0
]);
av_freep
(
&
s
->
motion_val
[
1
]);
av_freep
(
&
s
->
edge_emu_buffer
);
av_freep
(
&
s
->
edge_emu_buffer
);
s
->
theora_tables
=
0
;
s
->
theora_tables
=
0
;
...
...
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