diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-23 15:49:29 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-28 19:15:57 +0800 |
commit | 7a705081788bf957409e17baa5f189241589057c (patch) | |
tree | 29cbdaaf993cac1255c93ec78061bcef2288a8e7 /src/xvmc | |
parent | 0283d22f510ba47dfdac2806a58e46649c26580b (diff) |
xvmc: formalize surface type definition
We should also carefully select surface type id.
Diffstat (limited to 'src/xvmc')
-rw-r--r-- | src/xvmc/i915_xvmc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 519de5a3..bd31de44 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1850,9 +1850,8 @@ static int i915_xvmc_mc_render_surface(Display *display, XvMCContext *context, if (!(privTarget = target_surface->privData)) return XvMCBadSurface; - /* Test For YV12 Surface */ - if (context->surface_type_id != FOURCC_YV12) { - XVMC_ERR("HWMC only possible on YV12 Surfaces."); + if (context->surface_type_id >= SURFACE_TYPE_MAX) { + XVMC_ERR("Unsupprted surface_type_id %d.", context->surface_type_id); return BadValue; } |