summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-11-18 11:42:42 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2009-11-18 11:50:34 +0800
commit0476de6baac13ee2898558701801e9cdb7186140 (patch)
tree552412126c452065a419f7fe46ecf94aedb97f4e
parentf1307ebb223e9c87a226c599074941ab7a349da2 (diff)
downloadlibva-0476de6baac13ee2898558701801e9cdb7186140.tar.gz
Fix vaQueryImageFormats() to return 0 image formats supported at this time.
-rw-r--r--i965_drv_video/i965_drv_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c
index 375d532..8d28547 100644
--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -346,6 +346,9 @@ i965_QueryImageFormats(VADriverContextP ctx,
VAImageFormat *format_list, /* out */
int *num_formats) /* out */
{
+ if (num_formats)
+ *num_formats = 0;
+
return VA_STATUS_SUCCESS;
}