diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-13 10:23:47 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-06-24 13:23:53 +0800 |
commit | f5eeeee65bff3c34b60db823d0b26e5d62d00099 (patch) | |
tree | 979fcc5e4e5b2de48d448a10cd54c581812ec6e2 | |
parent | d2ce7c5068b34ff19b4841caef6c3d26e9f0201d (diff) | |
download | libva-f5eeeee65bff3c34b60db823d0b26e5d62d00099.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>
(cherry picked from commit 54f686f4a371bf34007ce1ff70e7b74cd9986ad7)
-rw-r--r-- | test/decode/tinyjpeg.c | 2 |
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"); |