diff options
author | Nicolas George <george@nsup.org> | 2019-12-26 19:32:23 +0100 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2020-08-21 11:01:39 +0200 |
commit | 06f26512046de1a84e045d219e7fa211c37ad0e4 (patch) | |
tree | 711ef7a0823031d953c092095dc207a38b083769 /libavutil/avstring.h | |
parent | 412d63fe72d4398d0ffd271a9bd30c6ac9fc0deb (diff) | |
download | ffmpeg-06f26512046de1a84e045d219e7fa211c37ad0e4.tar.gz |
lavu/avstring: deprecate av_d2str().
It is no longer used in our code base and does not seem
to be used much in other projects.
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r-- | libavutil/avstring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h index 274335cfb9..ee225585b3 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -24,6 +24,7 @@ #include <stddef.h> #include <stdint.h> #include "attributes.h" +#include "version.h" /** * @addtogroup lavu_string @@ -155,10 +156,14 @@ static inline size_t av_strnlen(const char *s, size_t len) */ char *av_asprintf(const char *fmt, ...) av_printf_format(1, 2); +#if FF_API_D2STR /** * Convert a number to an av_malloced string. + * @deprecated use av_asprintf() with "%f" or a more specific format */ +attribute_deprecated char *av_d2str(double d); +#endif /** * Unescape the given string until a non escaped terminating char, |