1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

doc/examples: properly close input in metadata.

Avoid some memleaks.
This commit is contained in:
Clément Bœsch 2012-05-12 22:33:39 +02:00
parent 50df68fd50
commit 5e82ec9b42

View File

@ -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;
}