diff options
Diffstat (limited to 'base/src/portbase.cpp')
-rw-r--r-- | base/src/portbase.cpp | 3 |
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; |