Commit 7d4da02d authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

OMX: Don't blindly set the input buffer size

Keep it set to whatever the codec had set it to initially.

This makes the IOMX codecs work on Nexus 7.

This might also help for issues on Qualcomm devices (buffer sizes
that were too large on Nexus One, but restricting them broke
larger resolutions on HP TouchBook instead).

Optionally, one might need to call OMX_SetParameter/OMX_GetParameter
after setting the width/height to get a proper buffer size initialized
instead.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 512b0a37
......@@ -318,6 +318,7 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
if(def->eDir == OMX_DirInput || p_dec->p_sys->b_enc)
{
if (def->eDir == OMX_DirInput && p_dec->p_sys->b_enc)
def->nBufferSize = def->format.video.nFrameWidth *
def->format.video.nFrameHeight * 2;
p_port->i_frame_size = def->nBufferSize;
......
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