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
@return >=0 if OK, AVERROR_xxx on error
@todo Let the user decide somehow what information is needed so that
we do not waste time getting stuff the user does not need.
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 @return >=0 if OK, AVERROR_xxx on error @todo Let the user decide somehow what information is needed so that we do not waste time getting stuff the user does not need.
@deprecated use avformat_find_stream_info.