前言
本文分析avformat_find_stream_info函数,该函数在libavformat包下。
/**
* Read packets of a media file to get stream information.
* This is useful for file formats with no headers such as MPEG.
* This function also computes the real framerate in case of MPEG-2 repeat frame mode.
*
* The logical file position is not changed by this function;
* examined packets may be buffered for later processing.
*
* @param ic media file handle
* @param options If non-NULL, an ic.nb_streams long array of pointers to
* dictionaries, where i-th member contains options for
* codec corresponding to i-th stream.
* On return each dictionary will be filled with options