History

avformat/avformat.h: elaborate documentation for avformat_open_input() on error condition

Marth64 committed 2 years ago

Commit 910e5a21 parent 8ad2d191 file · +3 −2Browse files

Unified · Split

libavformat/avformat.h+3−2
@@ -2296,7 +2296,7 @@ int av_probe_input_buffer(AVIOContext *pb, const AVInputFormat **fmt, · 2295 unmodified lines
2296 * which case an AVFormatContext is allocated by this2296 * which case an AVFormatContext is allocated by this
2297 * function and written into ps.2297 * function and written into ps.
2298 * Note that a user-supplied AVFormatContext will be freed2298 * Note that a user-supplied AVFormatContext will be freed
2299 * on failure.2299 * on failure and its pointer set to NULL.
2300 * @param url URL of the stream to open.2300 * @param url URL of the stream to open.
2301 * @param fmt If non-NULL, this parameter forces a specific input format.2301 * @param fmt If non-NULL, this parameter forces a specific input format.
2302 * Otherwise the format is autodetected.2302 * Otherwise the format is autodetected.
@@ -2305,7 +2305,8 @@ int av_probe_input_buffer(AVIOContext *pb, const AVInputFormat **fmt, · 2 unmodified lines
2305 * On return this parameter will be destroyed and replaced with2305 * On return this parameter will be destroyed and replaced with
2306 * a dict containing options that were not found. May be NULL.2306 * a dict containing options that were not found. May be NULL.
2307 *2307 *
2308 * @return 0 on success, a negative AVERROR on failure.2308 * @return 0 on success; on failure: frees ps, sets its pointer to NULL,
2309 * and returns a negative AVERROR.
2309 *2310 *
2310 * @note If you want to use custom IO, preallocate the format context and set its pb field.2311 * @note If you want to use custom IO, preallocate the format context and set its pb field.
2311 */2312 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t