From 6c36d9722df768cfe63e015193459d870f3cdaa9 Mon Sep 17 00:00:00 2001 From: Tianmi Chen Date: Fri, 11 Apr 2014 17:32:34 +0800 Subject: 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 --- videocodec/OMXVideoDecoderH263.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'videocodec/OMXVideoDecoderH263.cpp') 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); -- cgit v1.2.3