History

avformat: introduce AVFormatContext io_close2 which returns an int

Otherwise there is no way to detect an error returned by avio_close() because ff_format_io_close cannot get the return value. Checking the return value of the close function is important in order to check if all data was successfully written and the underlying close() operation was successful. It can also be useful even for read mode because it can return any pending AVIOContext error, so the user don't have to manually check AVIOContext->error. In order to still support if the user overrides io_close, the generic code only uses io_close2 if io_close is either NULL or the default io_close callback.

Marton Balint committed 4 years ago

Commit 64834bb1 parent 8d66a0711 files · +50 −9Browse files

Showing the changes to doc/APIchanges (1 of 11 files). Show all

Unified · Split

doc/APIchanges+3−0
@@ -14,6 +14,9 @@ libavutil: 2021-04-27 · 13 unmodified lines
1414
1515 API changes, most recent first:
1616
17+2021-12-xx - xxxxxxxxxx - lavf 59.10.100 - avformat.h
18+ Add AVFormatContext io_close2 which returns an int
19+
1720 2021-11-10 - xxxxxxxxxx - lavu 57.11.100 - hwcontext_vulkan.h
1821 Add AVVkFrame.offset and AVVulkanFramesContext.flags.
1922

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