ffmpeg:av_open_input_file
Table of Contents
av_open_input_file
Overview
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);
Parameters
ic_ptr
AVFormatContext **ic_ptr
A pointer to an AVFormatContext pointer. The opened media file handle is put here.
filename
const char *filename
Filename to open.
fmt
AVInputFormat *fmt
An AVInputFormat pointer. If non NULL, force the file format to use.
buf_size
int buf_size
Optional buffer size (zero if default is OK).
ap
AVFormatParameters *ap
An AVFormatParameters pointer containing additional parameters needed when opening the file (NULL if default).
Return value
ffmpeg/av_open_input_file.txt · Last modified: 2007/11/26 12:28 by deva