[FFmpeg-cvslog] libavformat: Free AVFormatContext->streams

Martin Storsjö git at videolan.org
Thu Apr 21 03:40:32 CEST 2011


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Apr 20 12:03:55 2011 +0300| [7bbb67d58005f3c0384f657570fabcdc0bc8cc21] | committer: Martin Storsjö

libavformat: Free AVFormatContext->streams

After switching this from a statically allocated array to a
dynamically allocated one in the major bump, this needs explicit
freeing.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 0c80ff6..19498b9 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2564,6 +2564,7 @@ void avformat_free_context(AVFormatContext *s)
     av_freep(&s->chapters);
     av_metadata_free(&s->metadata);
     av_freep(&s->key);
+    av_freep(&s->streams);
     av_free(s);
 }
 



More information about the ffmpeg-cvslog mailing list