Compatibility fix.

This commit is contained in:
LoRd_MuldeR 2012-02-12 17:35:50 +01:00
parent 6073e311af
commit e316c3cd37
2 changed files with 8 additions and 1 deletions

View File

@ -121,6 +121,13 @@ bool OptionsModel::loadTemplate(OptionsModel *model, const QString &name)
QSettings settings(QString("%1/templates.ini").arg(appDir), QSettings::IniFormat);
settings.beginGroup(name);
//For backward-compatibility
if(settings.contains("custom_params"))
{
settings.setValue("custom_params_x264", settings.value("custom_params"));
settings.remove("custom_params"); settings.sync();
}
bool complete = true;
if(!settings.contains("rate_control_mode")) complete = false;
if(!settings.contains("target_bitrate")) complete = false;

View File

@ -22,7 +22,7 @@
#define VER_X264_MAJOR 2
#define VER_X264_MINOR 0
#define VER_X264_PATCH 1
#define VER_X264_BUILD 134
#define VER_X264_BUILD 135
#define VER_X264_MINIMUM_REV 2146
#define VER_X264_CURRENT_API 120