aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Bolun <bolun.liu@intel.com>2013-12-03 13:43:07 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:42 -0700
commit78c1837ebe200a58aebed8bad480064da909d6ff (patch)
treeb8a5ec2f6737bdce9cce99ae9f4dfdcba676021b
parent7fe59118003a3c624651cf4512fd4251171b9e6a (diff)
downloadwrs_omxil_core-78c1837ebe200a58aebed8bad480064da909d6ff.tar.gz
Add "OMX_COLOR_FormatUnused" case in getFrameBufSize
BZ: 154696 Add "OMX_COLOR_FormatUnused" case in getFrameBufSize to fix WIFI Display break issue. Change-Id: Ib6c0cf672e104fae19432bef9d56c8f9a63bf6f4 Signed-off-by: Liu Bolun <bolun.liu@intel.com>
-rw-r--r--base/src/portbase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/src/portbase.cpp b/base/src/portbase.cpp
index c4019c0..8c19318 100644
--- a/base/src/portbase.cpp
+++ b/base/src/portbase.cpp
@@ -168,6 +168,9 @@ OMX_U32 PortBase::getFrameBufSize(OMX_COLOR_FORMATTYPE colorFormat, OMX_U32 widt
case OMX_COLOR_FormatYUV420Planar:
case OMX_COLOR_FormatYUV420SemiPlanar:
return (width * height * 3) >> 1;
+ case OMX_COLOR_FormatUnused:
+ return (width * height * 3) >> 1;
+
default:
LOGV("unsupport color format !");
return -1;