summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-07-02 03:06:02 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-07-02 03:06:02 +0000
commit99cb9abdb8d872812ef5c6674b0676e7cdacaab3 (patch)
tree9177cbff96b39f6013822f0f8e36637c30de773a
parent8af3f1a443965939efdcf4c570a5e912b113ca2b (diff)
parent127a8592e28c259e8a563e99daf32a80fd9dd6f8 (diff)
downloadmedia-android11-mainline-sparse-2021-jan-release.tar.gz
Change-Id: I543bf9b9398d2e643a0e12007d180d8997a0352e
-rw-r--r--msm8998/mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp8
1 files changed, 5 insertions, 3 deletions
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 @@ bool venc_dev::venc_validate_profile_level(OMX_U32 *eProfile, OMX_U32 *eLevel)
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;
}