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é <funman@videolan.org>
&p_port->i_frame_size, &p_port->i_frame_stride,
&p_port->i_frame_stride_chroma_div );
def->format.video.nStride = 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;
}
break;