summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-02-08 20:43:07 +0100
committerThomas Reufer <thomas@reufer.ch>2015-02-08 20:43:07 +0100
commitbeb7667ab18ee5231f5d0da1c30b02addafae57e (patch)
tree790952487f7f2dd06acb2decd657114314223e9e
parent57958b2ae5bebdba8648f6b63a69b4a961cdd274 (diff)
downloadvdr-plugin-rpihddevice-beb7667ab18ee5231f5d0da1c30b02addafae57e.tar.gz
vdr-plugin-rpihddevice-beb7667ab18ee5231f5d0da1c30b02addafae57e.tar.bz2
increased video and audio buffers to 64x 64k (4M) and 128x 16k (2M)
-rw-r--r--omx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/omx.c b/omx.c
index 562e094..5bc4619 100644
--- a/omx.c
+++ b/omx.c
@@ -911,9 +911,9 @@ int cOmx::SetVideoCodec(cVideoCodec::eCodec codec)
OMX_IndexParamPortDefinition, &param) != OMX_ErrorNone)
ELOG("failed to get video decoder port parameters!");
- // default: 20x 81920 bytes
+ // default: 20x 81920 bytes, now 64x 64k (4M)
param.nBufferSize = KILOBYTE(64);
- param.nBufferCountActual = 32;
+ param.nBufferCountActual = 64;
m_freeVideoBuffers = true;
if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eVideoDecoder]),
@@ -1072,9 +1072,9 @@ int cOmx::SetupAudioRender(cAudioCodec::eCodec outputFormat, int channels,
OMX_IndexParamPortDefinition, &param) != OMX_ErrorNone)
ELOG("failed to get audio render port parameters!");
- // default: 16x 4096 bytes
+ // default: 16x 4096 bytes, now 128x 16k (2M)
param.nBufferSize = KILOBYTE(16);
- param.nBufferCountActual = 64;
+ param.nBufferCountActual = 128;
m_freeAudioBuffers = true;
if (OMX_SetParameter(ILC_GET_HANDLE(m_comp[eAudioRender]),