]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/avstring.h
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavutil / avstring.h
index 662af6b70d45d2f3807d11b26d7098cb3b8be13f..2be84a9ed09e34950d9d46edd1931ffd7f495a4e 100644 (file)
@@ -110,6 +110,16 @@ size_t av_strlcat(char *dst, const char *src, size_t size);
  */
 size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...) av_printf_format(3, 4);
 
+/**
+ * Print arguments following specified format into a large enough auto
+ * allocated buffer. It is similar to GNU asprintf().
+ * @param fmt printf-compatible format string, specifying how the
+ *            following parameters are used.
+ * @return the allocated string
+ * @note You have to free the string yourself with av_free().
+ */
+char *av_asprintf(const char *fmt, ...) av_printf_format(1, 2);
+
 /**
  * Convert a number to a av_malloced string.
  */