41 if (
s->iformat->priv_data_size > 0) {
47 if (
s->iformat->priv_class) {
48 *(
const AVClass**)
s->priv_data=
s->iformat->priv_class;
static const char *const format[]
static AVInputFormat * iformat
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
void avformat_free_context(AVFormatContext *s)
Free an AVFormatContext and all its streams.
AVFormatContext * avformat_alloc_context(void)
Allocate an AVFormatContext.
ff_const59 AVInputFormat * av_find_input_format(const char *short_name)
Find AVInputFormat based on the short name of the input format.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int ff_alloc_input_device_context(AVFormatContext **avctx, AVInputFormat *iformat, const char *format)
common internal API header
#define AV_IS_INPUT_DEVICE(category)
Describe the class of an AVClass context structure.
AVClassCategory category
Category used for visualization (like color) This is only set if the category is equal for all object...
static void error(const char *err)