Fix the error code for unsupported resolution
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 May 2012 03:05:52 +0000 (11:05 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 4 May 2012 03:10:51 +0000 (11:10 +0800)
Thank Gwenole for pointing it out

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit d0dfefde77ebe6093e304a84df796c6e1157f00a)

src/i965_drv_video.c

index c7892cd..05ba908 100644 (file)
@@ -987,7 +987,7 @@ i965_CreateContext(VADriverContextP ctx,
 
     if (picture_width > i965->codec_info->max_width ||
         picture_height > i965->codec_info->max_height) {
-        vaStatus = VA_STATUS_ERROR_INVALID_PARAMETER;
+        vaStatus = VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED;
         return vaStatus;
     }