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
f91d94bd
Commit
f91d94bd
authored
Feb 24, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1dec: Properly call deinit function on error
parent
35b1cd34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
vc1dec.c
libavcodec/vc1dec.c
+5
-11
No files found.
libavcodec/vc1dec.c
View file @
f91d94bd
...
@@ -362,20 +362,14 @@ av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v)
...
@@ -362,20 +362,14 @@ av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v)
if
(
!
v
->
mv_type_mb_plane
||
!
v
->
direct_mb_plane
||
!
v
->
acpred_plane
||
!
v
->
over_flags_plane
||
if
(
!
v
->
mv_type_mb_plane
||
!
v
->
direct_mb_plane
||
!
v
->
acpred_plane
||
!
v
->
over_flags_plane
||
!
v
->
block
||
!
v
->
cbp_base
||
!
v
->
ttblk_base
||
!
v
->
is_intra_base
||
!
v
->
luma_mv_base
||
!
v
->
block
||
!
v
->
cbp_base
||
!
v
->
ttblk_base
||
!
v
->
is_intra_base
||
!
v
->
luma_mv_base
||
!
v
->
mb_type_base
)
{
!
v
->
mb_type_base
)
{
av_freep
(
&
v
->
mv_type_mb_plane
);
goto
error
;
av_freep
(
&
v
->
direct_mb_plane
);
av_freep
(
&
v
->
acpred_plane
);
av_freep
(
&
v
->
over_flags_plane
);
av_freep
(
&
v
->
block
);
av_freep
(
&
v
->
cbp_base
);
av_freep
(
&
v
->
ttblk_base
);
av_freep
(
&
v
->
is_intra_base
);
av_freep
(
&
v
->
luma_mv_base
);
av_freep
(
&
v
->
mb_type_base
);
return
AVERROR
(
ENOMEM
);
}
}
return
0
;
return
0
;
error:
ff_vc1_decode_end
(
s
->
avctx
);
return
AVERROR
(
ENOMEM
);
}
}
av_cold
void
ff_vc1_init_transposed_scantables
(
VC1Context
*
v
)
av_cold
void
ff_vc1_init_transposed_scantables
(
VC1Context
*
v
)
...
...
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