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
aeddc6e3
Commit
aeddc6e3
authored
Oct 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/lavfutils: fix memleak of avpacket
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
eedfee12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lavfutils.c
libavfilter/lavfutils.c
+3
-0
No files found.
libavfilter/lavfutils.c
View file @
aeddc6e3
...
...
@@ -33,6 +33,8 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
int
frame_decoded
,
ret
=
0
;
AVPacket
pkt
;
av_init_packet
(
&
pkt
);
av_register_all
();
iformat
=
av_find_input_format
(
"image2"
);
...
...
@@ -85,6 +87,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
av_image_copy
(
data
,
linesize
,
(
const
uint8_t
**
)
frame
->
data
,
frame
->
linesize
,
*
pix_fmt
,
*
w
,
*
h
);
end:
av_free_packet
(
&
pkt
);
avcodec_close
(
codec_ctx
);
avformat_close_input
(
&
format_ctx
);
av_freep
(
&
frame
);
...
...
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