diff options
author | Austin Hu <austin.hu@intel.com> | 2017-05-10 15:58:12 +0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2017-05-18 17:14:40 +0000 |
commit | 1691725b0c0d1129a4912df69e8ffbc60b726f26 (patch) | |
tree | e38370dd823d658c150dd0cd04f0ac02e703a6db | |
parent | c0f2dd551d0445783010b6c70d9bf5ec4cdc10a9 (diff) | |
download | omx-components-1691725b0c0d1129a4912df69e8ffbc60b726f26.tar.gz |
Rejected the invalid size of input video buffer.
Bug: 37920272
Test: manual and CTS
IMINAN-51483
Change-Id: Id1859f29d0fbdb3be43c05cffd77546e712af782
Signed-off-by: Austin Hu <austin.hu@intel.com>
-rw-r--r-- | videocodec/OMXVideoDecoderVP9Hybrid.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp index fe8d5f8..d6030e4 100644 --- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp +++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp @@ -356,7 +356,10 @@ OMX_ERRORTYPE OMXVideoDecoderVP9Hybrid::ProcessorProcess( firstFrameSize = 0; return ret; } - } + } else if (!mRet && (mDecodedImageNewWidth == 0 || mDecodedImageNewHeight == 0)) { + retains[INPORT_INDEX] = BUFFER_RETAIN_NOT_RETAIN; + return OMX_ErrorBadParameter; + } } #if LOG_TIME == 1 |