summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-06-13 10:23:47 +0800
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-08-27 11:16:44 +0200
commit755636caf3400006508c0b8b538508e268f04f3e (patch)
treed9322144ef5c322a8a6de2c5d9d7d57301a62722
parenta2bf0c9659f2183e1782cfa18e512e6366c12187 (diff)
downloadlibva-755636caf3400006508c0b8b538508e268f04f3e.tar.gz
test/decode/tinyjpeg: create VA surface with right render target format
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
-rw-r--r--test/decode/tinyjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/decode/tinyjpeg.c b/test/decode/tinyjpeg.c
index e6e0659..0a544fe 100644
--- a/test/decode/tinyjpeg.c
+++ b/test/decode/tinyjpeg.c
@@ -698,7 +698,7 @@ int tinyjpeg_decode(struct jdec_private *priv)
type = "Format_400P";
}
- va_status = vaCreateSurfaces(va_dpy,VA_RT_FORMAT_YUV420,
+ va_status = vaCreateSurfaces(va_dpy,surface_type,
priv->width[scan_num],priv->height[scan_num], //alignment?
&surface_id, 1, &forcc, 1);
CHECK_VASTATUS(va_status, "vaCreateSurfaces");