History

libavutil: Deprecate av_fopen_utf8, provide an avpriv version

Since every DLL can use an individual CRT on Windows, having an exported function that opens a FILE* won't work if that FILE* is going to be used from a different DLL (or from user application code). Internally within the libraries, the issue can be worked around by duplicating the function in all libraries (this already happened implicitly because the function resided in file_open.c) and renaming the function to ff_fopen_utf8 (so that it doesn't end up exported from the DLLs) and duplicating it in all libraries that use it. This makes the avpriv_fopen_utf8 / ff_fopen_utf8 function work in the exact same way as the existing avpriv_open / ff_open, with the same setup as introduced in e743e7ae6ee7e535c4394bec6fe6650d2b0dbf65. That mechanism doesn't work for external users, thus deprecate the existing function.

Martin Storsjö committed 4 years ago

Commit 4cdc14a1 parent 3fb92449 files · +32 −4Browse files

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

Unified · Split

doc/APIchanges+3−0
@@ -14,6 +14,9 @@ libavutil: 2021-04-27 · 13 unmodified lines
14 14
15API changes, most recent first:15API changes, most recent first:
16 16
172022-05-23 - xxxxxxxxx - lavu 57.25.100 - avutil.h
18 Deprecate av_fopen_utf8() without replacement.
19
172022-03-16 - xxxxxxxxxx - all libraries - version_major.h202022-03-16 - xxxxxxxxxx - all libraries - version_major.h
18 Add lib<name>/version_major.h as new installed headers, which only21 Add lib<name>/version_major.h as new installed headers, which only
19 contain the major version number (and corresponding API deprecation22 contain the major version number (and corresponding API deprecation

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