aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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