respect int return type for WebPValidateConfig
This commit is contained in:
parent
1011e9d3c7
commit
feffa8f53c
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue