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
f51e3a19
Commit
f51e3a19
authored
Dec 04, 2013
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webp: do not call av_frame_free() on the user-provided frame
Fixes double-free on error.
parent
b73a8922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
webp.c
libavcodec/webp.c
+2
-6
No files found.
libavcodec/webp.c
View file @
f51e3a19
...
...
@@ -1129,10 +1129,8 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p,
if
(
is_alpha_chunk
)
s
->
image
[
IMAGE_ROLE_ARGB
].
is_alpha_primary
=
1
;
ret
=
decode_entropy_coded_image
(
s
,
IMAGE_ROLE_ARGB
,
w
,
h
);
if
(
ret
<
0
)
{
av_frame_free
(
&
p
);
if
(
ret
<
0
)
goto
free_and_return
;
}
/* apply transformations */
for
(
i
=
s
->
nb_transforms
-
1
;
i
>=
0
;
i
--
)
{
...
...
@@ -1150,10 +1148,8 @@ static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p,
ret
=
apply_color_indexing_transform
(
s
);
break
;
}
if
(
ret
<
0
)
{
av_frame_free
(
&
p
);
if
(
ret
<
0
)
goto
free_and_return
;
}
}
*
got_frame
=
1
;
...
...
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