diff options
author | Dikshita Agarwal <dikshita@codeaurora.org> | 2017-09-27 13:09:30 +0530 |
---|---|---|
committer | Dikshita Agarwal <dikshita@codeaurora.org> | 2017-09-27 14:07:43 +0530 |
commit | d832b5b9ce8f7ca8656ad1fd11100ecde11aab7c (patch) | |
tree | cf67e226d6f062260a81a946a96066343a9148c6 /mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp | |
parent | e1c701151c7f71a7a069e6b24ae299b7453403e9 (diff) | |
download | media-d832b5b9ce8f7ca8656ad1fd11100ecde11aab7c.tar.gz |
mm-video-v4l2: fix KW issues
-fix kw issues
CRs-Fixed: 2117284
Change-Id: I3e2e203bcaf28f8da32c31b660c6d150c095a31a
Diffstat (limited to 'mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp')
-rw-r--r-- | mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp b/mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp index b9febfa6..092e09ba 100644 --- a/mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp +++ b/mm-video-v4l2/vidc/venc/src/omx_swvenc_mpeg4.cpp @@ -2064,12 +2064,14 @@ OMX_ERRORTYPE omx_venc::dev_get_supported_profile_level(OMX_VIDEO_PARAM_PROFILEL { ENTER_FUNC(); OMX_ERRORTYPE eRet = OMX_ErrorNone; + + if (profileLevelType == NULL) + { + DEBUG_PRINT_ERROR("p_profilelevel = NULL"); + return OMX_ErrorBadParameter; + } + if (profileLevelType->nPortIndex == 1) { - if (profileLevelType == NULL) - { - DEBUG_PRINT_ERROR("p_profilelevel = NULL"); - return OMX_ErrorBadParameter; - } if (m_sOutPortDef.format.video.eCompressionFormat == OMX_VIDEO_CodingH263) { if (profileLevelType->nProfileIndex == 0) |