respect int return type for WebPValidateConfig

This commit is contained in:
Dane Springmeyer 2014-08-25 14:38:03 -07:00
parent 1011e9d3c7
commit feffa8f53c

View file

@ -145,8 +145,7 @@ void save_as_webp(T1& file,
WebPConfig const& config,
bool alpha)
{
bool valid = WebPValidateConfig(&config);
if (!valid)
if (WebPValidateConfig(&config) != 1)
{
throw std::runtime_error("Invalid configuration");
}