[vlc-devel] commit: Qt: force positive values for width && height when transcoding ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri May 1 01:03:08 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri May  1 00:48:59 2009 +0200| [3cac0a4836b80052477bc49bc290cacf1f216415] | committer: Jean-Baptiste Kempf 

Qt: force positive values for width && height when transcoding

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

 .../gui/qt4/components/sout/profile_selector.cpp   |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index af61d30..7d4591c 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -184,12 +184,13 @@ void VLCProfileSelector::updateOptions( int i )
             if( options[4] != "none" )
             {
                 smrl.option( "vb", options[5].toInt() );
-                smrl.option( "fps", options[7] );
+                if( !options[7].isEmpty() && options[7].toInt() > 0 )
+                    smrl.option( "fps", options[7] );
                 if( !options[6].isEmpty() )
                     smrl.option( "scale", options[6] );
-                if( !options[8].isEmpty() )
+                if( !options[8].isEmpty() && options[8].toInt() > 0 )
                     smrl.option( "width", options[8].toInt() );
-                if( !options[9].isEmpty() )
+                if( !options[9].isEmpty() && options[9].toInt() > 0 )
                     smrl.option( "height", options[9].toInt() );
             }
         }




More information about the vlc-devel mailing list