public static MediaDictionary2 Copy(MediaDictionary2 source) { AVDictionary *destination = null; av_dict_copy(&destination, source, 0).ThrowIfError(); return(new MediaDictionary2(destination)); }
public static MediaDictionary2 FromDictionary(IDictionary <string, string> dict) { MediaDictionary2 md = Empty; foreach (var entry in dict) { md[entry.Key] = entry.Value; } return(md); }
private static IntPtr av_dict_get_safe(MediaDictionary2 dict, IntPtr prev) { return((IntPtr)av_dict_get(dict, "", (AVDictionaryEntry *)prev, (int)DictFlags.IgnoreSuffix)); }