Commit 1775dea4 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

omxil_vout: Set pixel aspect ratio, for the broadcom renderer


Signed-off-by: Martin Storsjö's avatarMartin Storsjö <martin@martin.st>
parent 91af483e
......@@ -260,6 +260,13 @@ static int Open(vlc_object_t *p_this)
config_display.set = OMX_DISPLAY_SET_FULLSCREEN;
config_display.fullscreen = OMX_TRUE;
OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
if (vd->fmt.i_width != vd->cfg->display.width || vd->fmt.i_height != vd->cfg->display.height) {
config_display.set = OMX_DISPLAY_SET_PIXEL;
config_display.pixel_x = vd->cfg->display.width * vd->fmt.i_height;
config_display.pixel_y = vd->cfg->display.height * vd->fmt.i_width;
OMX_SetConfig(p_sys->omx_handle, OMX_IndexConfigDisplayRegion, &config_display);
}
}
......
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