walleye/taimen: fix AVC level support am: fa9f654f7a am: 93cae4cf12 am: d8c40b974c

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/media/+/10816122

Change-Id: I6b71cc464cd6ec5a07c91ec3e90f809486354af9
diff --git a/msm8998/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp b/msm8998/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
index 0bdd914..ef691d6 100644
--- a/msm8998/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
+++ b/msm8998/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
@@ -7733,10 +7733,12 @@
 
         profile_tbl = (unsigned int const *)h264_profile_level_table;
         if ((*eProfile != OMX_VIDEO_AVCProfileBaseline) &&
-            (*eProfile != QOMX_VIDEO_AVCProfileConstrainedBaseline) &&
+            (*eProfile != OMX_VIDEO_AVCProfileMain) &&
             (*eProfile != OMX_VIDEO_AVCProfileHigh) &&
-            (*eProfile != QOMX_VIDEO_AVCProfileConstrainedHigh) &&
-            (*eProfile != OMX_VIDEO_AVCProfileMain)) {
+            (*eProfile != OMX_VIDEO_AVCProfileConstrainedBaseline) &&
+            (*eProfile != QOMX_VIDEO_AVCProfileConstrainedBaseline) &&
+            (*eProfile != OMX_VIDEO_AVCProfileConstrainedHigh) &&
+            (*eProfile != QOMX_VIDEO_AVCProfileConstrainedHigh)) {
             DEBUG_PRINT_LOW("Unsupported AVC profile type %u", (unsigned int)*eProfile);
             return false;
         }