…lines 1–61 unchanged (61 lines)
62
63static const char *const slave_delim = "|";
64static const char *const slave_bsfs_spec_sep = "/";
65static const char *const slave_select_sep = ",";
66
67#define OFFSET(x) offsetof(TeeContext, x)
68static const AVOption tee_options[] = {
69 {"use_fifo", "Use fifo pseudo-muxer to separate actual muxers from encoder",
70 OFFSET(use_fifo), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM},
71 {"fifo_options", "fifo pseudo-muxer options", OFFSET(fifo_options),
72 AV_OPT_TYPE_DICT, {.str = NULL}, 0, 0, AV_OPT_FLAG_ENCODING_PARAM},
73 {NULL}
74};
75
76static const AVClass tee_muxer_class = {
77 .class_name = "Tee muxer",
78 .item_name = av_default_item_name,
79 .option = tee_options,
80 .version = LIBAVUTIL_VERSION_INT,
81};
82
83static inline int parse_slave_failure_policy_option(const char *opt, TeeSlave *tee_slave)
84{
85 if (!opt) {
…lines 86–618 unchanged (533 lines)