avio: Document that write_packet() is not allowed to change its input

Found-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 13 years ago
parent c6963a220d
commit 55cdd45446
  1. 1
      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 opaque An opaque pointer to user-specific data.
* @param read_packet A function for refilling the buffer, may be NULL. * @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. * @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. * @param seek A function for seeking to specified byte position, may be NULL.
* *
* @return Allocated AVIOContext or NULL on failure. * @return Allocated AVIOContext or NULL on failure.

Loading…
Cancel
Save