diff options
| author | Tianmi Chen <tianmi.chen@intel.com> | 2014-04-11 17:32:34 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:58 -0700 |
| commit | 6c36d9722df768cfe63e015193459d870f3cdaa9 (patch) | |
| tree | 9d01777db8bb0003a5484a1e04cfda9061d853b9 /videocodec/OMXVideoDecoderH263.cpp | |
| parent | d6909bc46ae314eb3cf17b411c095ede37c7465e (diff) | |
| download | android_hardware_intel_common_omx-components-6c36d9722df768cfe63e015193459d870f3cdaa9.tar.gz android_hardware_intel_common_omx-components-6c36d9722df768cfe63e015193459d870f3cdaa9.tar.bz2 android_hardware_intel_common_omx-components-6c36d9722df768cfe63e015193459d870f3cdaa9.zip | |
omx-component: set max buffer count in case of protected video
BZ: 186222
max buffer count is set in case of adaptive playback. Protected
video also needs to override the function.
Change-Id: Ie532c66c5b77ca307bee5f434fe9474cf524948b
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderH263.cpp')
| -rw-r--r-- | videocodec/OMXVideoDecoderH263.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderH263.cpp b/videocodec/OMXVideoDecoderH263.cpp index b7e6f32..d1c66b1 100644 --- a/videocodec/OMXVideoDecoderH263.cpp +++ b/videocodec/OMXVideoDecoderH263.cpp @@ -145,5 +145,14 @@ OMX_COLOR_FORMATTYPE OMXVideoDecoderH263::GetOutputColorFormat(int width, int he #endif } +OMX_ERRORTYPE OMXVideoDecoderH263::SetMaxOutputBufferCount(OMX_PARAM_PORTDEFINITIONTYPE *p) { + OMX_ERRORTYPE ret; + CHECK_TYPE_HEADER(p); + CHECK_PORT_INDEX(p, OUTPORT_INDEX); + + p->nBufferCountActual = OUTPORT_NATIVE_BUFFER_COUNT; + return OMXVideoDecoderBase::SetMaxOutputBufferCount(p); +} + DECLARE_OMX_COMPONENT("OMX.Intel.VideoDecoder.H263", "video_decoder.h263", OMXVideoDecoderH263); |
