Commit 3c9c56db authored by Martin Storsjö's avatar Martin Storsjö Committed by Rafaël Carré

omxil: Only set the buffer size if it is smaller than what the codec suggested

This is required on HTC Sensation. That device uses a special
tiled pixel format, which probably contains a bit of padding, too.
The size that the omx codec suggests for the output port is bigger
than what VLC calculates, and we thus should keep the larger value
instead of overwriting it with what we calculated ourselves.
Signed-off-by: Rafaël Carré's avatarRafaël Carré <>
parent 960e3780
......@@ -352,7 +352,8 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
&p_port->i_frame_size, &p_port->i_frame_stride,
&p_port->i_frame_stride_chroma_div );
def-> = p_port->i_frame_stride;
def->nBufferSize = p_port->i_frame_size;
if (p_port->i_frame_size > def->nBufferSize)
def->nBufferSize = p_port->i_frame_size;
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