mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	cwebp: fallback to native webp decode in WIC builds
this gives precedence to WIC, but attempts to decode the file as WebP if it fails Change-Id: I3d894f39a26aea88897a8ebd345139b82f74f312
This commit is contained in:
		| @@ -94,6 +94,9 @@ static int ReadPicture(const char* const filename, WebPPicture* const pic, | |||||||
|   } else { |   } else { | ||||||
|     // If no size specified, try to decode it using WIC. |     // If no size specified, try to decode it using WIC. | ||||||
|     ok = ReadPictureWithWIC(filename, pic, keep_alpha, metadata); |     ok = ReadPictureWithWIC(filename, pic, keep_alpha, metadata); | ||||||
|  |     if (!ok) { | ||||||
|  |       ok = ReadWebP(filename, pic, keep_alpha, metadata); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|   if (!ok) { |   if (!ok) { | ||||||
|     fprintf(stderr, "Error! Could not process file %s\n", filename); |     fprintf(stderr, "Error! Could not process file %s\n", filename); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user