projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64fe49
)
avformat: unref packet after storing it in internal packet queue
author
Hendrik Leppkes
<h.leppkes@gmail.com>
Sun, 1 Nov 2015 10:08:42 +0000
(11:08 +0100)
committer
Hendrik Leppkes
<h.leppkes@gmail.com>
Mon, 2 Nov 2015 08:03:56 +0000
(09:03 +0100)
Fixes a memory leak when using genpts
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
3f82659
..
5c4d452
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1559,6
+1559,7
@@
int av_read_frame(AVFormatContext *s, AVPacket *pkt)
ret = add_to_pktbuf(&s->internal->packet_buffer, pkt,
&s->internal->packet_buffer_end, 1);
+ av_packet_unref(pkt);
if (ret < 0)
return ret;
}