[vlmc-devel] commit: WorkflowRenderer: Use the user specified aspect ratio ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Mon Nov 29 00:58:25 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Nov 29 00:35:17 2010 +0100| [599b89d1f3df4a7cc98ed4e661a2a64d81a37a0f] | committer: Hugo Beauzée-Luyssen 

WorkflowRenderer: Use the user specified aspect ratio

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=599b89d1f3df4a7cc98ed4e661a2a64d81a37a0f
---

 src/Renderer/WorkflowRenderer.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 042b8ed..b61d442 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -96,11 +96,13 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps )
     char        audioParameters[256];
     char        buffer[64];
 
+    const QString   aspectRatio = VLMC_PROJECT_GET_STRING("video/AspectRatio");
+
     m_esHandler->fps = fps;
     //Clean any previous render.
 
     sprintf( videoString, "width=%i:height=%i:dar=%s:fps=%s:cookie=0:codec=%s:cat=2:caching=0",
-             width, height, "16/9", "30/1", "RV32" );
+             width, height, aspectRatio.toAscii().constData(), "30/1", "RV32" );
     sprintf( audioParameters, "cookie=1:cat=1:codec=f32l:samplerate=%u:channels=%u:caching=0",
                 m_rate, m_nbChannels );
     strcpy( inputSlave, ":input-slave=imem://" );



More information about the Vlmc-devel mailing list