webp: Make sure enough bytes are available