| 650 | } |
| 651 | |
| 652 | static int set_string_dict(void *obj, const AVOption *o, const char *val, uint8_t **dst) |
| 653 | { |
| 654 | AVDictionary *options = NULL; |
| 655 | |
| 656 | if (val) { |
| 657 | int ret = av_dict_parse_string(&options, val, "=", ":", 0); |
| 658 | if (ret < 0) { |
| 659 | av_dict_free(&options); |
| 660 | return ret; |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | av_dict_free((AVDictionary **)dst); |
| 665 | *dst = (uint8_t *)options; |
| 666 | |
| 667 | return 0; |
| 668 | } |
| 669 | |
| 670 | static int set_string_channel_layout(void *obj, const AVOption *o, |
| 671 | const char *val, void *dst) |
no test coverage detected