[FFmpeg-devel] [PATCH] lavc/avcodec.h: clarify what avpicture_free() really does

Stefano Sabatini stefasab at gmail.com
Tue Jun 19 13:08:39 CEST 2012


---
 libavcodec/avcodec.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9a8c5ac..8bbce23 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4240,6 +4240,8 @@ int avpicture_alloc(AVPicture *picture, enum PixelFormat pix_fmt, int width, int
  * The data buffer used by the AVPicture is freed, but the AVPicture structure
  * itself is not.
  *
+ * This is equivalent to calling av_free(picture->data[0]).
+ *
  * @param picture the AVPicture to be freed
  */
 void avpicture_free(AVPicture *picture);
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list