Commit 91af483e authored by Martin Storsjö's avatar Martin Storsjö

omxil_vout: Use the actual pixel size as frame size

Don't use the display size, which has taken the pixel aspect
ratio into account.

This still doesn't handle actually displaying anything with
non-square pixels correctly, though.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent a35232ca
......@@ -189,8 +189,8 @@ static int Open(vlc_object_t *p_this)
#define ALIGN(x, y) (((x) + ((y) - 1)) & ~((y) - 1))
def->format.video.nFrameWidth = vd->cfg->display.width;
def->format.video.nFrameHeight = vd->cfg->display.height;
def->format.video.nFrameWidth = vd->fmt.i_width;
def->format.video.nFrameHeight = vd->fmt.i_height;
def->format.video.nStride = 0;
def->format.video.nSliceHeight = 0;
p_sys->port.definition.format.video.eColorFormat = OMX_COLOR_FormatYUV420PackedPlanar;
......
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