diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-08 17:30:15 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-08-10 15:15:00 +0100 |
commit | 987170cb9dd036d3372c8feac6074d13d1b84dd2 (patch) | |
tree | e4d443be62fdf1319300a027423c777551a20cd9 /libavformat/asfenc.c | |
parent | 05c36e0e5fbf0b75dbbbd327ad2f6a62992f9262 (diff) | |
download | ffmpeg-987170cb9dd036d3372c8feac6074d13d1b84dd2.tar.gz |
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/asfenc.c')
-rw-r--r-- | libavformat/asfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 7c824a5db4..bcb741e04d 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -316,7 +316,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data duration = asf->duration + PREROLL_TIME * 10000; has_title = tags[0] || tags[1] || tags[2] || tags[3] || tags[4]; - metadata_count = s->metadata ? s->metadata->count : 0; + metadata_count = av_dict_count(s->metadata); bit_rate = 0; for(n=0;n<s->nb_streams;n++) { |