]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/dict.c
rtpdec_h264: Don't set the pixel format
[ffmpeg] / libavutil / dict.c
index 3ea7e55b30ab5e0e022c4137d71708e933631eef..3c3194c1bc3914f44f31ba2c73edd934e3d92552 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <strings.h>
+#include <ctype.h>
+#include <string.h>
+
 #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)
 {