83 #define OFFSET(x) offsetof(AVFormatContext,x)
84 #define DEFAULT 0 //should be NAN but it does not work as it is not a constant in glibc as required by ANSI/ISO C
86 #define E AV_OPT_FLAG_ENCODING_PARAM
87 #define D AV_OPT_FLAG_DECODING_PARAM
99 {
"noparse",
"disable AVParsers, this needs nofillin too", 0,
AV_OPT_TYPE_CONST, {.dbl =
AVFMT_FLAG_NOPARSE }, INT_MIN, INT_MAX,
D,
"fflags"},
101 #if FF_API_FLAG_RTP_HINT
102 {
"rtphint",
"add rtp hinting (deprecated, use the -movflags rtphint option instead)", 0,
AV_OPT_TYPE_CONST, {.dbl = AVFMT_FLAG_RTP_HINT }, INT_MIN, INT_MAX,
E,
"fflags"},
105 {
"analyzeduration",
"how many microseconds are analyzed to estimate duration",
OFFSET(max_analyze_duration),
AV_OPT_TYPE_INT, {.dbl = 5*
AV_TIME_BASE }, 0, INT_MAX,
D},
107 {
"indexmem",
"max memory used for timestamp index (per stream)",
OFFSET(max_index_size),
AV_OPT_TYPE_INT, {.dbl = 1<<20 }, 0, INT_MAX,
D},
108 {
"rtbufsize",
"max memory used for buffering real-time frames",
OFFSET(max_picture_buffer),
AV_OPT_TYPE_INT, {.dbl = 3041280 }, 0, INT_MAX,
D},
112 {
"fpsprobesize",
"number of frames used to probe fps",
OFFSET(fps_probe_size),
AV_OPT_TYPE_INT, {.dbl = -1}, -1, INT_MAX-1,
D},
115 {
"f_err_detect",
"set error detection flags (deprecated; use err_detect, save via avconv)",
OFFSET(
error_recognition),
AV_OPT_TYPE_FLAGS, {.dbl =
AV_EF_CRCCHECK }, INT_MIN, INT_MAX,
D,
"err_detect"},
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVFormatContext * avformat_alloc_context(void)
Allocate an AVFormatContext.
const AVClass * avformat_get_class(void)
Get the AVClass for AVFormatContext.
struct AVOutputFormat * oformat
#define AV_TIME_BASE
Internal time base represented as integer.
offset must point to a pointer immediately followed by an int for the length
AVOutputFormat * av_oformat_next(AVOutputFormat *f)
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next register...
const AVClass ffio_url_class
static int error_recognition
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
Describe the class of an AVClass context structure.
const AVClass * av_class
A class for logging and AVOptions.
struct AVInputFormat * iformat
Can only be iformat or oformat, not both at the same time.
AVInputFormat * av_iformat_next(AVInputFormat *f)
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registere...
void * priv_data
Format private data.
AVClass * av_class
A class for private options.