aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoDecoderMPEG4.cpp
diff options
context:
space:
mode:
authorTianmi Chen <tianmi.chen@intel.com>2014-04-11 17:32:34 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:58 -0700
commit6c36d9722df768cfe63e015193459d870f3cdaa9 (patch)
tree9d01777db8bb0003a5484a1e04cfda9061d853b9 /videocodec/OMXVideoDecoderMPEG4.cpp
parentd6909bc46ae314eb3cf17b411c095ede37c7465e (diff)
downloadandroid_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/OMXVideoDecoderMPEG4.cpp')
-rw-r--r--videocodec/OMXVideoDecoderMPEG4.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderMPEG4.cpp b/videocodec/OMXVideoDecoderMPEG4.cpp
index d472577..ee831cd 100644
--- a/videocodec/OMXVideoDecoderMPEG4.cpp
+++ b/videocodec/OMXVideoDecoderMPEG4.cpp
@@ -146,6 +146,15 @@ OMX_COLOR_FORMATTYPE OMXVideoDecoderMPEG4::GetOutputColorFormat(int width, int h
#endif
}
+OMX_ERRORTYPE OMXVideoDecoderMPEG4::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.MPEG4", "video_decoder.mpeg4", OMXVideoDecoderMPEG4);