【FFmpeg编程进阶】(六)avformat_open_input 函数源代码分析
avformat_open_input()
函数主要用于打开音视频多媒体数据,且获得AVFormatContext
信息,
其定义在 libavformat\avformat.h
# libavformat\avformat.h
/**
* Open an input stream and read the header. The codecs are not opened.
* The stream must be closed with avformat_close_input().
*
* @param ps Pointer to user-supplied AVFormatContext (allocated by avformat_alloc_context).
* May be a pointer to NULL, in which case an AVFormatContext is allocated by this
* function and written into ps.
* Note that a user-supplied AVFormatContext will be freed on failure.
* @param url URL of the stream to o