Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-03 21:48:33 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-06-08 00:28:32 +0400
commitb3e2bb08a99a81bac672f6ba3958ca175bf06007 (patch)
tree8229a860a167b75fe138032e3672624a58a71252 /libavutil/bprint.h
parent9148ae5b910b1e221ab20cd2deb8c6ceefb0e9e8 (diff)
bprint: add av_bprint_init_for_buffer().
Diffstat (limited to 'libavutil/bprint.h')
-rw-r--r--libavutil/bprint.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/bprint.h b/libavutil/bprint.h
index ad65afec69..60e464e10b 100644
--- a/libavutil/bprint.h
+++ b/libavutil/bprint.h
@@ -100,6 +100,17 @@ void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max);
#define AV_BPRINT_SIZE_COUNT_ONLY 0
/**
+ * Init a print buffer using a pre-existing buffer.
+ *
+ * The buffer will not be reallocated.
+ *
+ * @param buf buffer structure to init
+ * @param buffer byte buffer to use for the string data
+ * @param size size of buffer
+ */
+void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size);
+
+/**
* Append a formated string to a print buffer.
*/
void av_bprintf(AVBPrint *buf, const char *fmt, ...) av_printf_format(2, 3);