From: Jean-Baptiste Kempf Date: Thu, 30 Apr 2009 22:48:59 +0000 (+0200) Subject: Qt: force positive values for width && height when transcoding X-Git-Tag: 1.0.0-rc1~148 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3cac0a4836b80052477bc49bc290cacf1f216415;p=vlc Qt: force positive values for width && height when transcoding --- diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp index af61d307cb..7d4591c76b 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() ); } }