[FFmpeg-devel] [PATCH] avcodec.h: document needed buffer size for av_get_codec_tag_string()

Thomas Volkert silvo at gmx.net
Sat Dec 20 00:29:56 CET 2014


From: Thomas Volkert <thomas at homer-conferencing.com>

---
 libavcodec/avcodec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4b6b00c..0f69a18 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4900,6 +4900,8 @@ void avcodec_set_dimensions(AVCodecContext *s, int width, int height);
 /**
  * Put a string representing the codec tag codec_tag in buf.
  *
+ * The buffer must have a size of at least 21 bytes.
+ *
  * @param buf       buffer to place codec tag in
  * @param buf_size size in bytes of buf
  * @param codec_tag codec tag to assign
-- 
1.9.1



More information about the ffmpeg-devel mailing list