Commit 3cac0a48 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent 66db20b6
......@@ -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() );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment