{"buffer_size","set packet buffer size in bytes",OFFSET(buffer_size),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,D|E},
{"localport","set local port to bind to",OFFSET(local_port),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,D|E},
{"localaddr","choose local IP address",OFFSET(local_addr),AV_OPT_TYPE_STRING,{.str=""},0,0,D|E},
{"udplite_coverage","choose UDPLite head size which should be validated by checksum",OFFSET(udplite_coverage),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,D|E},
{"pkt_size","set size of UDP packets",OFFSET(packet_size),AV_OPT_TYPE_INT,{.i64=1472},0,INT_MAX,D|E},
{"reuse","explicitly allow or disallow reusing UDP sockets",OFFSET(reuse_socket),AV_OPT_TYPE_INT,{.i64=0},0,1,D|E},
{"broadcast","explicitly allow or disallow broadcast destination",OFFSET(is_broadcast),AV_OPT_TYPE_INT,{.i64=0},0,1,E},
{"ttl","set the time to live value (for multicast only)",OFFSET(ttl),AV_OPT_TYPE_INT,{.i64=16},0,INT_MAX,E},
{"connect","set if connect() should be called on socket",OFFSET(is_connected),AV_OPT_TYPE_INT,{.i64=0},0,1,D|E},
/* TODO 'sources', 'block' option */
{"fifo_size","set the UDP receiving circular buffer size, expressed as a number of packets with size of 188 bytes",OFFSET(circular_buffer_size),AV_OPT_TYPE_INT,{.i64=7*4096},0,INT_MAX,D},
{"overrun_nonfatal","survive in case of UDP receiving circular buffer overrun",OFFSET(overrun_nonfatal),AV_OPT_TYPE_INT,{.i64=0},0,1,D},
{"timeout","set raise error timeout (only in read mode)",OFFSET(timeout),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,D},
{NULL}
{"buffer_size","System data size (in bytes)",OFFSET(buffer_size),AV_OPT_TYPE_INT,{.i64=-1},-1,INT_MAX,.flags=D|E},
{"broadcast","explicitly allow or disallow broadcast destination",OFFSET(is_broadcast),AV_OPT_TYPE_INT,{.i64=0},0,1,E},
{"ttl","Time to live (multicast only)",OFFSET(ttl),AV_OPT_TYPE_INT,{.i64=16},0,INT_MAX,E},
{"connect","set if connect() should be called on socket",OFFSET(is_connected),AV_OPT_TYPE_INT,{.i64=0},0,1,.flags=D|E},
{"fifo_size","set the UDP receiving circular buffer size, expressed as a number of packets with size of 188 bytes",OFFSET(circular_buffer_size),AV_OPT_TYPE_INT,{.i64=7*4096},0,INT_MAX,D},
{"overrun_nonfatal","survive in case of UDP receiving circular buffer overrun",OFFSET(overrun_nonfatal),AV_OPT_TYPE_INT,{.i64=0},0,1,D},
{"timeout","set raise error timeout (only in read mode)",OFFSET(timeout),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,D},