Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4c92fc02
Commit
4c92fc02
authored
Jan 20, 2024
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil: remove deprecated FF_API_AV_FOPEN_UTF8
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
65ddc749
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
44 deletions
+0
-44
avutil.h
libavutil/avutil.h
+0
-13
file.c
libavutil/file.c
+0
-6
file.h
libavutil/file.h
+0
-17
file_open.c
libavutil/file_open.c
+0
-7
version.h
libavutil/version.h
+0
-1
No files found.
libavutil/avutil.h
View file @
4c92fc02
...
...
@@ -335,19 +335,6 @@ unsigned av_int_list_length_for_size(unsigned elsize,
#define av_int_list_length(list, term) \
av_int_list_length_for_size(sizeof(*(list)), list, term)
#if FF_API_AV_FOPEN_UTF8
/**
* Open a file using a UTF-8 filename.
* The API of this function matches POSIX fopen(), errors are returned through
* errno.
* @deprecated Avoid using it, as on Windows, the FILE* allocated by this
* function may be allocated with a different CRT than the caller
* who uses the FILE*. No replacement provided in public API.
*/
attribute_deprecated
FILE
*
av_fopen_utf8
(
const
char
*
path
,
const
char
*
mode
);
#endif
/**
* Return the fractional representation of the internal time base.
*/
...
...
libavutil/file.c
View file @
4c92fc02
...
...
@@ -155,9 +155,3 @@ void av_file_unmap(uint8_t *bufptr, size_t size)
av_free
(
bufptr
);
#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
libavutil/file.h
View file @
4c92fc02
...
...
@@ -60,21 +60,4 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
*/
void
av_file_unmap
(
uint8_t
*
bufptr
,
size_t
size
);
#if FF_API_AV_FOPEN_UTF8
/**
* Wrapper to work around the lack of mkstemp() on mingw.
* Also, tries to create file in /tmp first, if possible.
* *prefix can be a character constant; *filename will be allocated internally.
* @return file descriptor of opened file (or negative value corresponding to an
* AVERROR code on error)
* and opened file name in **filename.
* @note On very old libcs it is necessary to set a secure umask before
* calling this, av_tempfile() can't call umask itself as it is used in
* libraries and could interfere with the calling application.
* @deprecated as fd numbers cannot be passed saftely between libs on some platforms
*/
attribute_deprecated
int
av_tempfile
(
const
char
*
prefix
,
char
**
filename
,
int
log_offset
,
void
*
log_ctx
);
#endif
#endif
/* AVUTIL_FILE_H */
libavutil/file_open.c
View file @
4c92fc02
...
...
@@ -189,10 +189,3 @@ FILE *avpriv_fopen_utf8(const char *path, const char *mode)
return
NULL
;
return
fdopen
(
fd
,
mode
);
}
#if FF_API_AV_FOPEN_UTF8
FILE
*
av_fopen_utf8
(
const
char
*
path
,
const
char
*
mode
)
{
return
avpriv_fopen_utf8
(
path
,
mode
);
}
#endif
libavutil/version.h
View file @
4c92fc02
...
...
@@ -105,7 +105,6 @@
* @{
*/
#define FF_API_AV_FOPEN_UTF8 (LIBAVUTIL_VERSION_MAJOR < 59)
#define FF_API_PKT_DURATION (LIBAVUTIL_VERSION_MAJOR < 59)
#define FF_API_REORDERED_OPAQUE (LIBAVUTIL_VERSION_MAJOR < 59)
#define FF_API_FRAME_PICTURE_NUMBER (LIBAVUTIL_VERSION_MAJOR < 59)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment