Unsupport resolution 2560x1600 encoding

BZ: 200960

Unsupport resolution 2560x1600 encoding

Change-Id: Id905a53b279571b7e1584c6d8c41798858f8dd68
Signed-off-by: gji2 <guoliang.ji@intel.com>
diff --git a/videoencoder/VideoEncoderBase.cpp b/videoencoder/VideoEncoderBase.cpp
index 813fc98..80278c9 100644
--- a/videoencoder/VideoEncoderBase.cpp
+++ b/videoencoder/VideoEncoderBase.cpp
@@ -120,6 +120,11 @@
         return ENCODE_NOT_SUPPORTED;
 #endif
 
+    if (mComParams.resolution.width > 1920  || mComParams.resolution.height > 1088){
+        LOGE("Unsupported resolution width %d, height %d\n",
+            mComParams.resolution.width, mComParams.resolution.height);
+        return ENCODE_NOT_SUPPORTED;
+    }
     queryAutoReferenceConfig(mComParams.profile);
 
     VAConfigAttrib vaAttrib_tmp[6],vaAttrib[VAConfigAttribTypeMax];