Commit 0ce57ba0 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

omxil: Use larger buffers on the OMAP4 decoder

This makes buffer allocation not fail.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1ac14a51
...@@ -413,6 +413,15 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port, ...@@ -413,6 +413,15 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
CHECK_ERROR(omx_error, "SetAudioParameters failed (%x : %s)", CHECK_ERROR(omx_error, "SetAudioParameters failed (%x : %s)",
omx_error, ErrorToString(omx_error)); omx_error, ErrorToString(omx_error));
} }
if (!strcmp(p_dec->p_sys->psz_component, "OMX.TI.DUCATI1.VIDEO.DECODER") &&
def->eDir == OMX_DirOutput)
{
/* When setting the output buffer size above, the decoder actually
* sets the buffer size to a lower value than what was chosen. If
* we try to allocate buffers of this size, it fails. Thus, forcibly
* use a larger buffer size. */
def->nBufferSize *= 2;
}
error: error:
return omx_error; return omx_error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment