[FFmpeg-devel] [PATCH] remove the deprecated avpicture_get_size() function

wm4 nfxjfg at googlemail.com
Sat Jan 16 10:55:44 CET 2016


On Fri, 15 Jan 2016 23:34:01 -0800
Eddie Hao <eddiehao1 at gmail.com> wrote:

> ---
>  libavcodec/avcodec.h         | 6 ------
>  libavcodec/avpicture.c       | 5 -----
>  libavcodec/libutvideodec.cpp | 3 ++-
>  libavcodec/libutvideoenc.cpp | 3 ++-
>  libavdevice/decklink_dec.cpp | 2 +-
>  libavdevice/lavfi.c          | 3 ++-
>  libavformat/frmdec.c         | 3 ++-
>  7 files changed, 9 insertions(+), 16 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index f365775..6fab787 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -4908,12 +4908,6 @@ int avpicture_layout(const AVPicture *src, enum AVPixelFormat pix_fmt,
>                       unsigned char *dest, int dest_size);
>  
>  /**
> - * @deprecated use av_image_get_buffer_size() instead.
> - */
> -attribute_deprecated
> -int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
> -
> -/**

Replacing uses of this function is welcome, but it can't be fully
removed yet. This would break API users. It has to happen on the next
major bump instead.


More information about the ffmpeg-devel mailing list