[FFmpeg-cvslog] r17245 - trunk/libavcodec/xvmc.h

Diego Biurrun diego
Sat Feb 14 18:35:10 CET 2009


On Sat, Feb 14, 2009 at 06:24:01PM +0100, iive wrote:
> 
> Log:
> Rename xvmc flags to follow ffmpeg AV_ notion.
> preserve MP_ ones until next major bump.

I don't think this is necessary, see my remark in the review
thread.  I updated MPlayer to use the new definitions, xine
and vlc do not use this header.

> --- trunk/libavcodec/xvmc.h	Sat Feb 14 18:12:25 2009	(r17244)
> +++ trunk/libavcodec/xvmc.h	Sat Feb 14 18:24:01 2009	(r17245)
> @@ -32,11 +32,18 @@
>  //the surface should be shown, the video driver manipulates this
>  #define AV_XVMC_STATE_DISPLAY_PENDING 1
>  //the surface is needed for prediction, the codec manipulates this
> -#define AV_XVMC_STATE_PREDICTION 2
> +#define AV_XVMC_STATE_PREDICTION      2
>  //this surface is needed for subpicture rendering
> -#define AV_XVMC_STATE_OSD_SOURCE 4
> -//                     1337    IDCT MCo
> -#define AV_XVMC_RENDER_MAGIC 0x1DC711C0
> +#define AV_XVMC_STATE_OSD_SOURCE      4
> +//                              1337    IDCT MCo
> +#define AV_XVMC_RENDER_MAGIC          0x1DC711C0
> +
> +#if LIBAVCODEC_VERSION_MAJOR < 53
> +#define MP_XVMC_STATE_DISPLAY_PENDING AV_XVMC_STATE_DISPLAY_PENDING
> +#define MP_XVMC_STATE_PREDICTION      AV_XVMC_STATE_PREDICTION
> +#define MP_XVMC_STATE_OSD_SOURCE      AV_XVMC_STATE_OSD_SOURCE
> +#define MP_XVMC_RENDER_MAGIC          AV_XVMC_RENDER_MAGIC
> +#endif

This is broken.  LIBAVCODEC_VERSION_MAJOR requires an avcodec.h #include.
Since this is a public header, there is no guarantee that avcodec.h is
#included from somewhere.

Diego




More information about the ffmpeg-cvslog mailing list