summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");