OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a297856
)
Add missing av_free_packet.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 20 Feb 2012 20:20:04 +0000
(21:20 +0100)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 20 Feb 2012 20:23:00 +0000
(21:23 +0100)
Fixes memory leak when encoding at least with mpegvideo using the
new encode2 function.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
8f6f039
..
8d727a3
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-1633,6
+1633,7
@@
static void do_video_out(AVFormatContext *s, OutputStream *ost,
write_frame(s, &pkt, ost);
frame_size = pkt.size;
video_size += pkt.size;
+ av_free_packet(&pkt);
/* if two pass, output log */
if (ost->logfile && enc->stats_out) {