X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fdict.c;h=3c3194c1bc3914f44f31ba2c73edd934e3d92552;hb=6af2480aa62e96fbfa4f2f99b80280ce77dafafd;hp=3ea7e55b30ab5e0e022c4137d71708e933631eef;hpb=1b9b37b8a416e77b4c6425dcdcee21cf8a1f5d67;p=ffmpeg diff --git a/libavutil/dict.c b/libavutil/dict.c index 3ea7e55b30a..3c3194c1bc3 100644 --- a/libavutil/dict.c +++ b/libavutil/dict.c @@ -18,12 +18,24 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include +#include + #include "avstring.h" #include "dict.h" #include "internal.h" #include "mem.h" +struct AVDictionary { + int count; + AVDictionaryEntry *elems; +}; + +int av_dict_count(const AVDictionary *m) +{ + return m ? m->count : 0; +} + AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags) {