mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-30 16:42:55 +01:00
Fix non-included header in config.c.
When compiling as experimental, WEBP_EXPERIMENTAL_FEATURES would not be defined because the header defining it would not be included. Hence runtime errors in debug mode when running: ./cwebp -lossles whatever ... Error! Cannot encode picture as WebP Error code: 4 (INVALID_CONFIGURATION: configuration is invalid) (detail: WebPConfig would have a random value set for delta_palettization as config.c does not consider it to exist.) Change-Id: I41761cffe81a971130ed514b195a73d1c6dac1b7
This commit is contained in:
parent
aaf2a6a698
commit
539f5a688f
@ -11,6 +11,10 @@
|
|||||||
//
|
//
|
||||||
// Author: Skal (pascal.massimino@gmail.com)
|
// Author: Skal (pascal.massimino@gmail.com)
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "../webp/config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../webp/encode.h"
|
#include "../webp/encode.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user