git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eedfee1
)
avfilter/lavfutils: fix memleak of avpacket
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Oct 2013 09:42:08 +0000
(11:42 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Oct 2013 09:52:10 +0000
(11:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/lavfutils.c
patch
|
blob
|
history
diff --git
a/libavfilter/lavfutils.c
b/libavfilter/lavfutils.c
index
8b6b114
..
b7a103b
100644
(file)
--- a/
libavfilter/lavfutils.c
+++ b/
libavfilter/lavfutils.c
@@
-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);