diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-08 20:30:15 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-08-10 18:15:00 +0400 |
commit | 987170cb9dd036d3372c8feac6074d13d1b84dd2 (patch) | |
tree | e4d443be62fdf1319300a027423c777551a20cd9 /libavformat/utils.c | |
parent | 05c36e0e5fbf0b75dbbbd327ad2f6a62992f9262 (diff) |
dict: add av_dict_count()
This adds a function to retrieve the number of entries in a
dictionary and updates the places directly accessing what should
be an opaque struct to use this new function instead.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 435ffc1c68..b850abfe1d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3306,7 +3306,7 @@ static void print_fps(double d, const char *postfix){ static void dump_metadata(void *ctx, AVDictionary *m, const char *indent) { - if(m && !(m->count == 1 && av_dict_get(m, "language", NULL, 0))){ + if(m && !(av_dict_count(m) == 1 && av_dict_get(m, "language", NULL, 0))){ AVDictionaryEntry *tag=NULL; av_log(ctx, AV_LOG_INFO, "%sMetadata:\n", indent); |