Defined in avformat.h
Open a media file as input. The codecs are not opened. Only the file header (if present) is read.
NOTE: If no output is desired, used av_alloc_format_context instead.
int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, int buf_size, AVFormatParameters *ap);
AVFormatContext **ic_ptr
A pointer to an AVFormatContext pointer. The opened media file handle is put here.
const char *filename
Filename to open.
AVInputFormat *fmt
An AVInputFormat pointer. If non NULL, force the file format to use.
int buf_size
Optional buffer size (zero if default is OK).
AVFormatParameters *ap
An AVFormatParameters pointer containing additional parameters needed when opening the file (NULL if default).