[FFmpeg-cvslog] doc/examples: properly close input in metadata.

Clément Bœsch git at videolan.org
Sat May 19 12:32:31 CEST 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat May 12 22:33:39 2012 +0200| [5e82ec9b4226d8ab48dc5e4c8cafe331bd624643] | committer: Clément Bœsch

doc/examples: properly close input in metadata.

Avoid some memleaks.

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

 doc/examples/metadata.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c
index 7d29be7..9f35912 100644
--- a/doc/examples/metadata.c
+++ b/doc/examples/metadata.c
@@ -50,6 +50,6 @@ int main (int argc, char **argv)
     while ((tag = av_dict_get(fmt_ctx->metadata, "", tag, AV_DICT_IGNORE_SUFFIX)))
         printf("%s=%s\n", tag->key, tag->value);
 
-    avformat_free_context(fmt_ctx);
+    avformat_close_input(&fmt_ctx);
     return 0;
 }



More information about the ffmpeg-cvslog mailing list