Commit 16ea90d7 authored by Ming Hu's avatar Ming Hu Committed by Jean-Baptiste Kempf

omxil: Limit input buffer size for qdsp6

This fixes trac ticket 5393.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 90df055f
...@@ -264,6 +264,16 @@ static OMX_ERRORTYPE ImplementationSpecificWorkarounds(decoder_t *p_dec, ...@@ -264,6 +264,16 @@ static OMX_ERRORTYPE ImplementationSpecificWorkarounds(decoder_t *p_dec,
def->format.video.xFramerate >>= 16; def->format.video.xFramerate >>= 16;
} }
} }
else if (!strncmp(p_sys->psz_component, "OMX.qcom.video.decoder.",
strlen("OMX.qcom.video.decoder")))
{
/* qdsp6 refuses buffer size larger than 450K on input port */
if (def->nBufferSize > 450 * 1024)
{
def->nBufferSize = 450 * 1024;
p_port->i_frame_size = def->nBufferSize;
}
}
return OMX_ErrorNone; return OMX_ErrorNone;
} }
......
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