Unified · Split
| @@ -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 this | 2296 | * 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 freed | 2298 | * 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 with | 2305 | * 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 | */ |