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>
(cherry picked from commit 1691725b0c0d1129a4912df69e8ffbc60b726f26)
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 @@
                 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