MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / parse_slave_fifo_policy

Function parse_slave_fifo_policy

libavformat/tee.c:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int parse_slave_fifo_policy(const char *use_fifo, TeeSlave *tee_slave)
101{
102 /*TODO - change this to use proper function for parsing boolean
103 * options when there is one */
104 if (av_match_name(use_fifo, "true,y,yes,enable,enabled,on,1")) {
105 tee_slave->use_fifo = 1;
106 } else if (av_match_name(use_fifo, "false,n,no,disable,disabled,off,0")) {
107 tee_slave->use_fifo = 0;
108 } else {
109 return AVERROR(EINVAL);
110 }
111 return 0;
112}
113
114static int parse_slave_fifo_options(const char *fifo_options, TeeSlave *tee_slave)
115{

Callers 1

open_slaveFunction · 0.85

Calls 1

av_match_nameFunction · 0.85

Tested by

no test coverage detected