Fix vaQueryImageFormats() to return 0 image formats supported at this time.
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Wed, 18 Nov 2009 03:42:42 +0000 (11:42 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 18 Nov 2009 03:50:34 +0000 (11:50 +0800)
i965_drv_video.c

index 375d532..8d28547 100644 (file)
@@ -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;
 }