[vlc-commits] omxil_vout: Use the actual pixel size as frame size

Martin Storsjö git at videolan.org
Fri Mar 22 17:10:28 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 22 12:06:52 2013 +0200| [91af483e374ae647cbe700ca4580c03b5b20bb61] | committer: 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: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91af483e374ae647cbe700ca4580c03b5b20bb61
---

 modules/codec/omxil/vout.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/omxil/vout.c b/modules/codec/omxil/vout.c
index 15ad424..1020221 100644
--- a/modules/codec/omxil/vout.c
+++ b/modules/codec/omxil/vout.c
@@ -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;



More information about the vlc-commits mailing list