aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2017-05-10 15:58:12 +0800
committerDaniel Cardenas <danielcar@google.com>2017-05-15 09:21:44 -0700
commitec2cc1a8775b1e613d527de22d423e12b5c56194 (patch)
tree6ed84ad4aab44d85aff5933f32c90e2da2805a59
parent1c6ccfd91bac95e2623aa511838fef0d94f45b96 (diff)
downloadomx-components-ec2cc1a8775b1e613d527de22d423e12b5c56194.tar.gz
Rejected the invalid size of input video buffer.
Bug: 37920272 IMINAN-51483 Test: netflix, youtube, play movies Change-Id: Id1859f29d0fbdb3be43c05cffd77546e712af782 Signed-off-by: Austin Hu <austin.hu@intel.com> (cherry picked from commit 413f3571021ac115cc5f371c4d00b8c58cb1c441)
-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