[FFmpeg-devel] [PATCH 2/2] avformat: unref packet after storing it in internal packet queue
Hendrik Leppkes
h.leppkes at gmail.com
Sun Nov 1 11:21:27 CET 2015
Fixes a memory leak when using genpts
---
libavformat/utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3f82659..5c4d452 100644
--- 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;
}
--
2.6.2.windows.1
More information about the ffmpeg-devel
mailing list