ffmpeg:av_new_stream
This is an old revision of the document!
Table of Contents
av_new_stream
Overview
Defined in avformat.h
Add a new stream to a media file.
Can only be called in the read_header() function. If the flag AVFMTCTX_NOHEADER is in the format context, then new streams can be added in read_packet() too.
AVStream *av_new_stream(AVFormatContext *s, int id);
Parameters
s
AVFormatContext *s
Media file handle, contained in a AVFormatContext pointer.
id
int id
File format dependent stream id.
See av_find_default_stream_index() for more info.
Return value
A pointer to the new AVStream or NULL upon failure.
See also
ffmpeg/av_new_stream.1197278222.txt.gz · Last modified: 2007/12/10 10:17 by deva