vlc | branch: master | Martin Storsjö <[email protected]> | 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ö <[email protected]>

> 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;

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to