diff options
author | Austin Hu <austin.hu@intel.com> | 2017-05-15 18:30:14 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-15 18:30:14 +0000 |
commit | ecccddef2e2b347f74096798486415e3d19d07f6 (patch) | |
tree | c8453f81bfcd4658594451a251190150fb004f9e | |
parent | 57ce1f9f2c37b8b6372ecb4f0857a52e42fb6d28 (diff) | |
parent | 44d52a5cd17c4a0ff6f07fe408f05c5f0236125f (diff) | |
download | omx-components-ecccddef2e2b347f74096798486415e3d19d07f6.tar.gz |
Rejected the invalid size of input video buffer. am: ec2cc1a877
am: 44d52a5cd1
Change-Id: I0f2a51a8f1308472357a89b9b319fcb6798bd384
-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 55934e0..61d7ba2 100644 --- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp +++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp @@ -355,7 +355,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 |