From e94439e49b70f89fa5123c7dcd51ea8d824d770f Mon Sep 17 00:00:00 2001 From: Artem Smorodin Date: Mon, 10 Nov 2025 14:38:37 +0300 Subject: [PATCH] avformat/tee: fix the default onfail setting of the tee salves I found that the default value is not set for onfail option. I see that there is an attempt to set this value by default inside parse_slave_failure_policy_option. But look at the CONSUME_OPTION macro. If av_dict_get cannot find this option, then this function is not even called. --- libavformat/tee.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/tee.c b/libavformat/tee.c index 0bac4fa202..8980b42274 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -167,6 +167,8 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) if ((ret = ff_tee_parse_slave_options(avf, slave, &options, &filename)) < 0) return ret; + tee_slave->on_fail = DEFAULT_SLAVE_FAILURE_POLICY; + #define CONSUME_OPTION(option, field, action) do { \ AVDictionaryEntry *en = av_dict_get(options, option, NULL, 0); \ if (en) { \