aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2017-05-15 18:25:07 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-15 18:25:07 +0000
commit44d52a5cd17c4a0ff6f07fe408f05c5f0236125f (patch)
tree6ed84ad4aab44d85aff5933f32c90e2da2805a59
parentda6d3dc398551ff80f662903ecc2891c53d2c8cc (diff)
parentec2cc1a8775b1e613d527de22d423e12b5c56194 (diff)
downloadomx-components-44d52a5cd17c4a0ff6f07fe408f05c5f0236125f.tar.gz
Rejected the invalid size of input video buffer.
am: ec2cc1a877 Change-Id: Idf4cad4a8fe1ad28485a8856c5ae9d30e4fc0672
-rw-r--r--videocodec/OMXVideoDecoderVP9Hybrid.cpp5
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