[FFmpeg-cvslog] vformat/utils: call flush_packet_queue() from avformat_free_context()

Michael Niedermayer git at videolan.org
Fri Aug 15 19:58:10 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 15 19:48:28 2014 +0200| [9c712d0b1608ec998dbe41d81a79f3fb7ea32b4d] | committer: Michael Niedermayer

vformat/utils: call flush_packet_queue() from avformat_free_context()

This avoids some theoretical memleaks

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c712d0b1608ec998dbe41d81a79f3fb7ea32b4d
---

 libavformat/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 34eca17..b4ca342 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3525,7 +3525,7 @@ void avformat_free_context(AVFormatContext *s)
     av_dict_free(&s->metadata);
     av_freep(&s->streams);
     av_freep(&s->internal);
-    free_packet_buffer(&s->packet_buffer, &s->packet_buffer_end);
+    flush_packet_queue(s);
     av_free(s);
 }
 



More information about the ffmpeg-cvslog mailing list