omxil_vout: Use the actual pixel size as frame size
authorMartin Storsjö <martin@martin.st>
Fri, 22 Mar 2013 10:06:52 +0000 (12:06 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 22 Mar 2013 16:10:14 +0000 (18:10 +0200)
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: Martin Storsjö <martin@martin.st>
modules/codec/omxil/vout.c

index 15ad424..1020221 100644 (file)
@@ -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;