| 208 | } |
| 209 | |
| 210 | int av_dict_parse_string(AVDictionary **pm, const char *str, |
| 211 | const char *key_val_sep, const char *pairs_sep, |
| 212 | int flags) |
| 213 | { |
| 214 | int ret; |
| 215 | |
| 216 | if (!str) |
| 217 | return 0; |
| 218 | |
| 219 | /* ignore STRDUP flags */ |
| 220 | flags &= ~(AV_DICT_DONT_STRDUP_KEY | AV_DICT_DONT_STRDUP_VAL); |
| 221 | |
| 222 | while (*str) { |
| 223 | if ((ret = parse_key_value_pair(pm, &str, key_val_sep, pairs_sep, flags)) < 0) |
| 224 | return ret; |
| 225 | |
| 226 | if (*str) |
| 227 | str++; |
| 228 | } |
| 229 | |
| 230 | return 0; |
| 231 | } |
| 232 | |
| 233 | void av_dict_free(AVDictionary **pm) |
| 234 | { |