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

Stefano Sabatini stefasab at gmail.com
Sat Jun 30 15:56:38 CEST 2012


On date Tuesday 2012-06-19 13:08:39 +0200, Stefano Sabatini encoded:
> ---
>  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]).
> + *

After some thought, I drop this as it exposes internal behavior.
-- 
FFmpeg = Faithful & Furious Majestic Perfectionist Exxagerate Governor


More information about the ffmpeg-devel mailing list