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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user