WebpToSDL(): fix the return value in case of error

spotted Diego Casorran

Change-Id: I48822ade22eb8fcef85043a84d712e892324476d
This commit is contained in:
Pascal Massimino 2018-06-04 09:51:53 +02:00
parent 895fd28f9b
commit 0f25e61c13

View File

@ -40,7 +40,7 @@ int WebpToSDL(const char* data, unsigned int data_size) {
if (!WebPInitDecoderConfig(&config)) { if (!WebPInitDecoderConfig(&config)) {
fprintf(stderr, "Library version mismatch!\n"); fprintf(stderr, "Library version mismatch!\n");
return 1; return 0;
} }
if (!init_ok) { if (!init_ok) {