[FFmpeg-devel] [PATCH 2/2] avcodec/vdpau: try to fix version macro use

Stefano Sabatini stefasab at gmail.com
Tue Nov 5 12:35:44 CET 2013


On date Tuesday 2013-11-05 12:03:48 +0100, Michael Niedermayer encoded:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavcodec/vdpau.h |    8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
> index b1c836c..97889ae 100644
> --- a/libavcodec/vdpau.h
> +++ b/libavcodec/vdpau.h
> @@ -53,13 +53,7 @@
>  #include <vdpau/vdpau_x11.h>
>  #include "libavutil/avconfig.h"
>  #include "libavutil/attributes.h"
> -
> -#ifndef FF_API_CAP_VDPAU
> -#define FF_API_CAP_VDPAU 1
> -#endif
> -#ifndef FF_API_BUFS_VDPAU
> -#define FF_API_BUFS_VDPAU 1
> -#endif
> +#include "version.h"

Makes sense but I cannot understand this (even if I guess it is
related to the previous patch):

commit 50fb8c1114b9c2b7d299cbc17a18a457d12069a8
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Tue Aug 6 14:03:40 2013 +0200

    avcodec/vdpau.h: define FF_API_CAP_VDPAU if its not defined
    
    Prevent build failure for applicatins using the old API
    This could be replaced be a include of version.h but some applications
    would then need extern C wrapers
    
    Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
-- 
FFmpeg = Fancy Free Magical Practical Extravagant Gorilla


More information about the ffmpeg-devel mailing list