From 38de4c8a25a8ed29ffc79c39fbd7e6c7a7a209d9 Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Tue, 20 Jan 2015 20:28:56 +0100 Subject: adjusted OMX buffer settings --- omx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/omx.c b/omx.c index 5ad17ab..562e094 100644 --- a/omx.c +++ b/omx.c @@ -911,7 +911,9 @@ int cOmx::SetVideoCodec(cVideoCodec::eCodec codec) OMX_IndexParamPortDefinition, ¶m) != OMX_ErrorNone) ELOG("failed to get video decoder port parameters!"); - param.nBufferCountActual = 64; + // default: 20x 81920 bytes + param.nBufferSize = KILOBYTE(64); + param.nBufferCountActual = 32; m_freeVideoBuffers = true; if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eVideoDecoder]), @@ -1070,8 +1072,9 @@ int cOmx::SetupAudioRender(cAudioCodec::eCodec outputFormat, int channels, OMX_IndexParamPortDefinition, ¶m) != OMX_ErrorNone) ELOG("failed to get audio render port parameters!"); + // default: 16x 4096 bytes param.nBufferSize = KILOBYTE(16); - param.nBufferCountActual = 256; + param.nBufferCountActual = 64; m_freeAudioBuffers = true; if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eAudioRender]), -- cgit v1.2.3