# HG changeset patch # User iive # Date 1234664268 0 # Node ID ac0ad123e3f0b85c04637affd031db5bfb48344a # Parent c9e8aed08d17f7d91db5108e84f2d4e8e094e282 Remove obsolete display_flags member from xvmc struct and mark state defines as obsolete. diff -r c9e8aed08d17 -r ac0ad123e3f0 xvmc.h --- a/xvmc.h Sun Feb 15 01:35:32 2009 +0000 +++ b/xvmc.h Sun Feb 15 02:17:48 2009 +0000 @@ -25,9 +25,11 @@ #include "avcodec.h" +#if LIBAVCODEC_VERSION_MAJOR < 53 #define AV_XVMC_STATE_DISPLAY_PENDING 1 /** the surface should be shown, the video driver manipulates this */ #define AV_XVMC_STATE_PREDICTION 2 /** the surface is needed for prediction, the codec manipulates this */ #define AV_XVMC_STATE_OSD_SOURCE 4 /** this surface is needed for subpicture rendering */ +#endif #define AV_XVMC_RENDER_MAGIC 0x1DC711C0 /**< magic value to ensure that regular pixel routines haven't corrupted the struct */ // 1337 IDCT MCo @@ -53,9 +55,6 @@ unsigned int picture_structure; ///< top/bottom fields or frame unsigned int flags; ///< XVMC_SECOND_FIELD - 1st or 2nd field in the sequence -#if LIBAVCODEC_VERSION_MAJOR < 53 - unsigned int display_flags; ///< 1, 2 or 1+2 fields for XvMCPutSurface -#endif //}@ /** Offset in the mv array for the current slice: