| 998 | } |
| 999 | |
| 1000 | int av_opt_set_chlayout(void *obj, const char *name, |
| 1001 | const AVChannelLayout *channel_layout, |
| 1002 | int search_flags) |
| 1003 | { |
| 1004 | AVChannelLayout *dst; |
| 1005 | int ret; |
| 1006 | |
| 1007 | ret = opt_set_init(obj, name, search_flags, AV_OPT_TYPE_CHLAYOUT, NULL, NULL, |
| 1008 | (void**)&dst); |
| 1009 | if (ret < 0) |
| 1010 | return ret; |
| 1011 | |
| 1012 | return av_channel_layout_copy(dst, channel_layout); |
| 1013 | } |
| 1014 | |
| 1015 | static void format_duration(char *buf, size_t size, int64_t d) |
| 1016 | { |
no test coverage detected