diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-28 00:13:24 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-03 15:42:40 +0200 |
commit | dea974456035d8d43c69a23b9db036a544bb0455 (patch) | |
tree | d6c454b85a1cb05310bd726554243b0c56c13c03 /libavutil/file.c | |
parent | 72c601e0f71d3c71a53d43bdac935489ed86e3c5 (diff) | |
download | ffmpeg-dea974456035d8d43c69a23b9db036a544bb0455.tar.gz |
avutil/file: Properly deprecate av_tempfile()
It has been deprecated in b4f59beeb4c2171879d0d7607a4a7d6165f07791,
but the attribute_deprecated was not set and there was no entry
in APIchanges. This commit adds these and schedules it for removal.
Given that the reason behind the deprecation is exactly the same
as in av_fopen_utf8(), reuse its FF_API_AV_FOPEN_UTF8.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/file.c')
-rw-r--r-- | libavutil/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/file.c b/libavutil/file.c index edee6aaf80..6a2f3aa91c 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -155,6 +155,8 @@ void av_file_unmap(uint8_t *bufptr, size_t size) #endif } +#if FF_API_AV_FOPEN_UTF8 int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx) { return avpriv_tempfile(prefix, filename, log_offset, log_ctx); } +#endif |