webp reader: initialize WebPDecoderConfig
This commit is contained in:
parent
7960be55fe
commit
49c01f8449
1 changed files with 4 additions and 0 deletions
|
@ -189,6 +189,10 @@ void webp_reader<T>::init()
|
|||
{
|
||||
WebPDecoderConfig config;
|
||||
config_guard guard(config);
|
||||
if (!WebPInitDecoderConfig(&config))
|
||||
{
|
||||
throw image_reader_exception("WEBP reader: WebPInitDecoderConfig failed");
|
||||
}
|
||||
if (WebPGetFeatures(buffer_->data(), buffer_->size(), &config.input) == VP8_STATUS_OK) {
|
||||
width_ = config.input.width;
|
||||
height_ = config.input.height;
|
||||
|
|
Loading…
Reference in a new issue