From 55cdd45446df65555fedaa2ef184b900d9dd1337 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 28 Jul 2012 01:15:48 +0200 Subject: [PATCH] avio: Document that write_packet() is not allowed to change its input Found-by: Reimar Signed-off-by: Michael Niedermayer --- libavformat/avio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/avio.h b/libavformat/avio.h index 9b9b65e218..cd40f78e5e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -171,6 +171,7 @@ int avio_check(const char *url, int flags); * @param opaque An opaque pointer to user-specific data. * @param read_packet A function for refilling the buffer, may be NULL. * @param write_packet A function for writing the buffer contents, may be NULL. + * The function may not change the input buffers content. * @param seek A function for seeking to specified byte position, may be NULL. * * @return Allocated AVIOContext or NULL on failure.