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
fdbd924b
Commit
fdbd924b
authored
Sep 16, 2013
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv34: Fix a memory leak on errors
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
bcbe4f3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rv34.c
libavcodec/rv34.c
+6
-2
No files found.
libavcodec/rv34.c
View file @
fdbd924b
...
...
@@ -1495,8 +1495,10 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
ff_rv40dsp_init
(
&
r
->
rdsp
);
#endif
if
((
ret
=
rv34_decoder_alloc
(
r
))
<
0
)
if
((
ret
=
rv34_decoder_alloc
(
r
))
<
0
)
{
ff_MPV_common_end
(
&
r
->
s
);
return
ret
;
}
if
(
!
intra_vlcs
[
0
].
cbppattern
[
0
].
bits
)
rv34_init_tables
();
...
...
@@ -1517,8 +1519,10 @@ int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx)
r
->
tmp_b_block_base
=
NULL
;
if
((
err
=
ff_MPV_common_init
(
&
r
->
s
))
<
0
)
return
err
;
if
((
err
=
rv34_decoder_alloc
(
r
))
<
0
)
if
((
err
=
rv34_decoder_alloc
(
r
))
<
0
)
{
ff_MPV_common_end
(
&
r
->
s
);
return
err
;
}
}
return
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