mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
WebpToSDL(): fix the return value in case of error
spotted Diego Casorran Change-Id: I48822ade22eb8fcef85043a84d712e892324476d
This commit is contained in:
parent
895fd28f9b
commit
0f25e61c13
@ -40,7 +40,7 @@ int WebpToSDL(const char* data, unsigned int data_size) {
|
||||
|
||||
if (!WebPInitDecoderConfig(&config)) {
|
||||
fprintf(stderr, "Library version mismatch!\n");
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!init_ok) {
|
||||
|
Loading…
Reference in New Issue
Block a user