[FFmpeg-devel] [PATCH 09/13] doc/examples: properly close input in metadata.

Clément Bœsch ubitux at gmail.com
Sat May 12 23:15:31 CEST 2012


Avoid some memleaks.
---
 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;
 }
-- 
1.7.10.1



More information about the ffmpeg-devel mailing list