diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-05-12 22:33:39 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-05-19 12:28:59 +0200 |
commit | 5e82ec9b4226d8ab48dc5e4c8cafe331bd624643 (patch) | |
tree | 1c47775695c8d6881e2f5bdf4f09134cb0472c49 | |
parent | 50df68fd50a1bb8364b9b1531280ddbb334f2232 (diff) | |
download | ffmpeg-5e82ec9b4226d8ab48dc5e4c8cafe331bd624643.tar.gz |
doc/examples: properly close input in metadata.
Avoid some memleaks.
-rw-r--r-- | doc/examples/metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c index 7d29be7049..9f35912c5e 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; } |