The branch, master has been updated
       via  e94439e49b70f89fa5123c7dcd51ea8d824d770f (commit)
      from  88b676105dd20ea72b39c0627e1a4b8d6b071f33 (commit)


- Log -----------------------------------------------------------------
commit e94439e49b70f89fa5123c7dcd51ea8d824d770f
Author:     Artem Smorodin <[email protected]>
AuthorDate: Mon Nov 10 14:38:37 2025 +0300
Commit:     Marton Balint <[email protected]>
CommitDate: Mon Nov 17 00:01:42 2025 +0000

    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.

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) {                                                       \

-----------------------------------------------------------------------

Summary of changes:
 libavformat/tee.c | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to